background - Server Monitoring iOS App -
i'm new ios programming , i'm developing app ping specified server every 5 minutes , let user know whether server up. far have been able working long app in foreground , it's moved background state not work. problem is, have no idea background mode should select none of modes describe app's function. i'm aware can accomplish creating simple php script (executed cron every 5 mins) ping server , send apns, there anyway can accomplish i'm trying without using apns ? thank much.
no, can't. in case solution use push notifications
.
local notifications
not option you, since need call method ping server, ios won't let app perform code in background
mode. may use beginbackgroundtaskwithexpirationhandler
method, it's execution limited 10 minutes
Comments
Post a Comment