//API_KEY is a public API key created for application in Google Developers Console
Sender sender = new Sender(API_KEY);
Message msg = new Message.Builder()
.addData("New message received", message)
.collapseKey("key1").build();
Result result = sender.send(msg, gcmid),5);
No comments:
Post a Comment