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:
complete guide going here.
Comments
Post a Comment