Differences between Android and iOS regarding Intents and background operations -
for current project try figure out differences between android , ios. have knowledge in android , absolutely no idea ios. want know is:
is there similar intents ios? indicate changes in wifi / bt connection android.bluetooth.device.action.acl_connected or android.net.wifi.state_change? or there method find out connection changes if app not running / in background mode?
as understand ios background service (like in android) enable time & https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/managingyourapplicationsflow/managingyourapplicationsflow.html, having background service in ios allowed specific types of apps. app asks sensor values (like accelerator) on regular basis not allowed - correct?
i thankful answers , further literature regarding these quesiton!
you can use implementation of reachability notifications wifi connectivity, keep in mind these won't wake app.
you can use core bluetooth connectivity events. again these won't wake app. believe can setup delegate cbcentralmanager find out that. check out docs here.
however, correct in saying still need solve issue of background execution keep app awake. need features make background execution useful user or apple won't approve app. here of options.
if app has actual bluetooth features can use 1 of modes (bluetooth-central , bluetooth-peripheral).
if have feature warrants background audio can use this
if have feature warrants background location can use cllocationmanager startupdatinglocation (but eat serious battery)
you might able set system spams silent remote notifications , use remote-notification background mode. meant downloading content
also keep in mind user can disable of these things on @ time.
good luck!
Comments
Post a Comment