Sunday, August 10, 2014

Google App Engine and Google Cloud Message - Send-to-sync messages

Code snippet for sending a Send-to-sync messages in GAE


//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

Applying SMA10/20, SMA20/50 as trading signals

This is the comparison for results before and after applying SMA10/20 and SMA20/50 in the stock trader. Background Trading 3 stock ma...