I am looking for a way to trigger an app to fetch data from a remote REST-Service. The approach shouldn't require polling.
iOS push notifications doesn't seem to be an option due to the fact that it can be deactivated by the user. However, I may be wrong.
Is there a best practice to get this done?
Actually Push Notification is the way to go.
On ios8 and later, push notifications are enabled by default for exactly this reason you want. You cannot show something to the user (meaning pushes containing a json with an alert will not be shown), but your app is getting the payload and can initiate an action once the push is received.
From the documentation:
A user’s notification settings control only whether the system displays local or remote notifications onscreen. Regardless of the notification settings, local and remote notifications are delivered to your app at the appropriate times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With