android - Push Notification on My app? -


hi developing university android app , in have announcements section if announcement/notice appear university has updated , send via push notification end users.

would suggest me best way it.

use parse.com sending notifications , less code. first create accound in parse.com, next set parse.com sdk in app, use link.

there 2 ways send push notifications using parse: channels , advanced targeting.sending notifications done parse.com push console, rest api or cloud code.

the simplest way start sending notifications using channels. allows use publisher-subscriber model sending pushes. devices start subscribing 1 or more channels, , notifications can later sent these subscribers. eg:- channel "new books in library" give notification have subscribed channel.

a channel identified string starts letter , consists of alphanumeric characters, underscores, , dashes.

subscribing channel can done using single method call. example, in university app, do:

parsepush.subscribeinbackground("newbooks"); 

sending push android sdk:

parsepush push = new parsepush(); push.setchannel("newbooks"); push.setmessage("library has received collection of twilight series. check out!!"); push.sendinbackground(); 

if want send every users of app go webpage , select push , click "send notification: enter image description here

complete guide going here.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -