automatic sending notification to ios/ android devices using urban airship and php -
i need send push notifications app server , thinking use urban airship , using php @ end. got urban's documentation ,my server need send message urban's server , urban's server forward devices
now ,i want automate process of sending of message server urban's server. actually, @ server, executing script go through database , fetch list of users whom message need send. please guide me regarding automating sending process.
yeah, can use urbanairship (ua) that. provide rest api (http://docs.urbanairship.com/connect/index.html) can use send audience (ua slang users).
so have
- use ua sdk in apps. basically, take off when start app, register google / apple push notifications , give token have store in database
- handle event want send push notifications in script
- get call data users database, i.e. device type (android / ios / windows phone) , token received ua user
- send data ua in way want (http://docs.urbanairship.com/connect/connect_send.html) , go
if want run script periodically propose using cronjob (https://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job) runs every x minutes / hours / days
Comments
Post a Comment