Hope this helps You can use background fetch for this, although you can't control if and when this happens (since the user can disable it). Instead of immediately downloading the firmware update, if you want to inform the user you can schedule a local notification to inform them. Push notifications are a more appropriate solution for this problem though. Just send a push notification when a new firmware update is available.
iPhone app versions: release micro-updates often, or major updates less frequently?
FusedLocationApi with PendingIntent for background location updates. Unable to receive updates
By : Shasha
Date : March 29 2020, 07:55 AM
hope this fix your issue In the sample below you can receive the location updates when the app runs in the background every 5 seconds using the PRIORITY_HIGH_ACCURACY mode. You will see these updates by receiving notifications indicating your location's coordinates. I also wanted to test whether the updates can be received after the app has been killed by the system as it is stated here: