ios - Silent push notifications and iBeacons -


i have developed small ibeacon based application, when application detects 1 of our ibeacons makes call web service obtain data set , send local notification user. working correctly.

i have raised idea these local notifications vary on short time intervals, new content. problem if user not leave region of ibeacon , reenters, application not "wake up" , user not receive new updated notification.

after asking advice on how tackle problem, suggested using remote notifications. reading found silent remote notifications, i'm not sure if can use them i'm thinking.

my idea this, when notification modified or created , associated ibeacon on server, sending silent push notification application "wakes" if not in foreground. thus, when application "wakes up", can ranging few seconds, , if ibeacon near detect , send new notification.

is possible , permissible? can send silent push notifications want or there limit?thanks

this possible , permissible. can read more in using push notifications initiate download section here:

https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/backgroundexecution/backgroundexecution.html

however, there few drawbacks:

  1. remote notifications can slow arrive, , not guaranteed apple arrive @ all.

  2. they bit of headache set given need build server ifrastructure send them.

a less timely alternative periodic refreshes, os typically lets app once day. see fetching small amounts of content opportunistically here:

https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/backgroundexecution/backgroundexecution.html


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -