How could I send messages from the cloud to Android ?

Asked

Viewed 67 times

0

I know of the existence of GCM , but it seems to me too complex , there is an easier way?

In case you don’t know any GCM appreciate.

  • Please correct the title of your question and the description. Apparently the title has nothing to do with the description. It would be better something like "How could I send messages from the cloud to Android ? "

  • You’re right, you’ve been corrected

1 answer

1


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

  1. Arrow the web permissions
  2. Initializes the service in your application in the Oncreate method

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

  3. Enables 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 push through the web interface:

Follows documentation https://parse.com/tutorials/android-push-notifications

  • 1

    Ismael, welcome to [pt.so]. Could you bring some of the link content to the body of your answer? Links constantly break, so answers that are based only on the link end up being obsolete faster and are removed. However, it is always good to leave the link as a reference :)

  • 1

    I tried to improve the answer :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.