Active 2 years, 7 months ago. Viewed 7k times. To demonstrate this problem I've created an sample app here The demo app just launches an CLLocationManager and keep this running in the background. Steps to reproduce Run the app on the device Grand access to locationmanager Put the app to the background Wait for hours Result: The app is terminated App is terminated without any reason after random time.
Expected result: The app is still running. How it should work This is confirmed by an Apple engineer: Once the CLLocationManager updates are started in the foreground and you did all the work to have it running in the background, the location updates should run endless in the background until: app is force quit device is rebooted app stops location updates app releases the CLLocationManager object app crashes iOS terminates the app due to memory shortage, the locationManager object is released, overreleased, or overwritten.
You should make sure that your view controller is not being instantiated, which then resets the locationController class. If that happens when the app is in the background, you will restart updates, which will cause the app to be eventually suspended. You should make sure the locationController is a singleton.
Check to see if there are crash logs on the device you are testing iOS is terminating the app due to memory shortage. In this case, you will find JetsamEvent logs on the device that shows your app being terminated. You can check the timestamps and locate the one that is around the time your app stopped working. Improve this question. Sjoerd Perfors Sjoerd Perfors 2, 19 19 silver badges 37 37 bronze badges. Add a comment. Active Oldest Votes. Updated answer: Apple fixed this bug in iOS Improve this answer.
I am facing the similar issue in long run of application in background. Any updates from Apple? So finally I found this on SO. I have this issue since ios 12 beta. I thought this will be resolved when release comes out. Anyways I will keep looking it here as your bug doesn't seem to be on openradar. This IOS12 behaviour change has effectively destroyed my app. Android did something similar with the introduction of Android P a year or so ago, but up until IOS 12, my app would work almost forever in the background, now it does not.
I am at a loss as to what to do. Is it possible to view progress of Apple Bug Reports? The only workaround I can see is to let the app run in the foreground and disable the lock screen.
Thus increasing battery drain considerably. If a blue account button appears at the top of the App Store, you might not be signed in. Tap it and sign in with your Apple ID. Learn what to do if you forgot your password. Learn what to do if you can't open the App Store. In the App Store, try to update the app manually. You might need to have a payment method on file, even if the app that you want to download is free. See what payment method you have on file and make sure that it isn't expired, declined, or failed.
Contact Apple Support for assistance. Get help if the Wi-Fi is not working. If the app fails to download or update, you can try deleting the app and reinstall directly.
The iOS Restrictions disables certain features of the iPhone, including the ability to download apps. So, if you can't install an update, the function may be blocked. Therefore, check how much free space you have and free up iPhone space by deleting unwanted documents and apps. If there is little available storage on your device, you can free iPhone space by exporting unwanted iPhone files or deleting some data you don't need, like apps, photos, podcasts, or videos.
If the app appears on your Home screen, but is dim or has white with lines on it, don't delete the app. Restart your device, then go to the App Store and redownload the app. Therefore, set your date and time to be automatically to solve this problem. Another common solution to many problems in iOS 12 or 11 is to update to the latest version of the iOS, which may solve the issue caused by system bugs.
If you have reached here and tried all the methods above but nothing has worked, you have to erase all the contents and settings on your iPhone and restore iPhone to the factory settings. As this resort will cause data loss, you'd better make an iPhone backup at first by using a free iPhone data transfer tool. EaseUS MobiMover Free highly recommended here is an excellent utility to move to export and import iPhone files with one-click, such as contacts, messages, notes, calendars, voice mails, books, photos, videos, and audios.
0コメント