How could I send messages from the cloud to Android?

0

I know of GCM , but I find it too complex, is there an easier way?

If you do not know any, and if you want to explain more about GCM , I'm grateful.

    
asked by anonymous 06.07.2015 / 16:11

1 answer

1

Parse.com has a very simple push service to use.

  • Move the web permissions
  • Initialize the service in your application in the OnCreate method

    Parse.initialize(this, "YOUR_APP_ID", "YOUR_CLIENT_KEY");

  • Enable to receive notification

    ParsePush.subscribeInBackground("", new SaveCallback() {
      @Override
      public void done(ParseException e) {
        if (e == null) {
          Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
        } else {
          Log.e("com.parse.push", "failed to subscribe for push", e);
        }
      }
    });
    
  • Then just send the push through the web interface:

    Follow link documentation

        
    09.07.2015 / 15:12