Hello,I'm doing an iOS app for iPhone and iPad.I usually do my test on the simulator, plus my iPhone and iPad.I also would like to use the app as a "normal" user.But when I try again the app, the one installed from the AppStore is replaced.Is there any way to have 2 versions of the same app?Thanks,Nicolas
Post
Replies
Boosts
Views
Activity
Hello,
I find out my App is running a lot in the background.
For example, over the last 24 hours.
My app is responsible for 18% of the battery usage. Also it shows the app was 1 minute on screen, then 11H41 min background.
The app uses CloudKit so in the capabilities I added "Remote Notifications".
In the sceneDidEnterBackground, I added a line to save the context.
(UIApplication.shared.delegate as? AppDelegate)?.saveContext()
I'm also using the user location but I blocked the background refresh.
self.locationManager.allowsBackgroundLocationUpdates = false
Finally, I'm using googleAdMob pod to display a banner.
Any idea why the app is consuming so much?
Also, Is there an instrument I could use to analyse this in development?
Thanks,
Nicolas