-1

Hi everyone I am developing an University Android app and in that I have announcements section where if any announcement/notice appear from the university it has to be updated and send it via push notification to the end users.

Would anyone suggest me the best way to do it.

sahu
  • 1,188
  • 10
  • 19

1 Answers1

-2

Use parse.com for sending notifications easily and with very less code. First create accound in parse.com, next set up parse.com sdk in app, use this link.

There are two ways to send push notifications using Parse: channels and advanced targeting.Sending notifications is often done from the Parse.com push console, the REST API or from Cloud Code.

The simplest way to start sending notifications is using channels. This allows you to use a publisher-subscriber model for sending pushes. Devices start by subscribing to one or more channels, and notifications can later be sent to these subscribers. For eg:- A channel "new books in library" will give notification to only those who have subscribed to this channel.

A channel is identified by a string that starts with a letter and consists of alphanumeric characters, underscores, and dashes.

Subscribing to a channel can be done using a single method call. For example, in a university app, we could do:

ParsePush.subscribeInBackground("newbooks");

Sending Push from android SDK:

ParsePush push = new ParsePush();
push.setChannel("newbooks");
push.setMessage("Library has just received collection of Twilight series. Check it out!!");
push.sendInBackground();

If you want to send it to every users of your app then just go to the webpage and select push and click "send notification: enter image description here

Complete guide to get you going here.

Psypher
  • 10,717
  • 12
  • 59
  • 83