iOS – How to develop app with background modes (1)?

What does Apple documentation talk about background modes?

Apple Documentation
In background mode, app should do as little as possible, and preferably nothing

Which use cases are allowed to run in background?

Apps don’t normally receive any extra execution time after they enter the background.

However, UIKit does grant execution time to apps that support any of the following time-sensitive capabilities:

  • Audio communication using AirPlay, or Picture in Picture video.
  • Location-sensitive services for users.
  • Voice over IP.
  • Communication with an external accessory.
  • Communication with Bluetooth LE accessories, or conversion of the device into a Bluetooth LE accessory.
  • Regular updates from a server.
  • Support for Apple Push Notification service (APNs).

How to listen to state change?

All state transitions result in UIKit sending notifications to the appropriate delegate object:

What do developers talk about background modes?

What is iOS life cycle?

Move from foreground to background

Tools

Cordova – Background Geolocation library

cordova-background-geolocation-lt
Sample
Free for iOS, pay fee for Android

Tutorials

Be the first to comment

Leave a Reply

Your email address will not be published.


*