Chris Schrut
Chris Schrut

Reputation: 93

ALL GCM parameters?

i´ve written a "pushserver" for my app via PHP. The push notifications i´ve sent via PHP are all received on the device, so far. But, i can just send/set the "message" and "title", see:

        $fields = array(
            'registration_ids' => $registrationIDs,
            'data' => array(
                'message' => $message,
                'title' => 'My App',
                'vibrate' => 1,
                'sound' => 1,
                'icon' => "http://example.com/image.jpg",
                "style" => "inbox"
            ),
        );

"icon" and "style" are not working (vibrate and sound not tested, yet). Every link for the parameters i´ve found is broken or kind of "you need to do object.setSomething() in JAVA.

Is there a list anywhere where i can see ALL parameters, which i can send to GCM? No matter, what language i use?

Cheers, Chris

Upvotes: 1

Views: 437

Answers (1)

sandeep_kosta
sandeep_kosta

Reputation: 346

couple of things need to keep in mind while all the data which you sending from server end

Is there a list anywhere where i can see ALL parameters,

exp :- you can send as many parameters as you want but offcourse there is limitation but not key specific just like you can use "textmessage" instead of "message" but make sure to retrieve the value from same key which you are assigning from server end

1) please make sure that you are getting all the data in gcmintentservice class try to print the log of all intent data.

please remember that this is just a string data it is not going to download the image for you. you have to download using volley library or any suitable library

Upvotes: 3

Related Questions