score:1

Accepted answer

make variables registration_ids and data to public in content class.

public class content implements serializable {
    public list<string> registration_ids;
    public map<string,string> data;

as jackson api reads the public variables from class or public getter/setters and in your case the variables are not public and also you didn't provide getter/setters, so the exception is.

hope it'll work.

score:0

with gcm you can refer guide of google: https://developers.google.com/cloud-messaging/android/start

then you can refer sample for that guide: https://github.com/googlesamples/google-services/tree/master/android/gcm

in the this guide, you can refer about gcm of client or sender gcm from server. i hope it helpful with you.


Related Query

More Query from same tag