Post

Replies

Boosts

Views

Activity

BGProcessingTask starts only if connected to power even if requiresExternalPower is NO
I setup a BGProcessingTask that do some work with the db and at the end sends an email. I've notice that, even if I set requiresExternalPower to false the task runs only when the device is connected to the power cable. I've tested setting the repeating time every 10 minutes. If the power cable is disconnected the task isn't launhed anuymore. After I attach the cable, waiting some minutes it restarts.
7
0
2.5k
Dec ’19
App not killed after receive an expiration advice during a BGAppRefreshTask or BGProcessingTask
I created a task where I create a local notification every 30 seconds and a notification when the expiration handle is fired. I can see that after receiving the advice for the limited time remaining, the notifications are generated without a limit, as if the app was never interrupted. Is it normal? Shouldn't it stop after about 30 seconds in case of app refresh?
1
0
642
Jun ’21