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.


with gcm you can refer guide of google:

then you can refer sample for that guide:

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