C cloner7801 Active Member Licensed User Longtime User Oct 30, 2016 #1 Hello I need to use timer when my app go to background in iOS. Timer is disable when app is background. I found below link that i can enable timer in background in swift and objective-c. link : http://stackoverflow.com/questions/...n-lock-on-my-application-with-swift-and-ios-8 Anybody can use it in Inline Objective C code? Thanks
Hello I need to use timer when my app go to background in iOS. Timer is disable when app is background. I found below link that i can enable timer in background in swift and objective-c. link : http://stackoverflow.com/questions/...n-lock-on-my-application-with-swift-and-ios-8 Anybody can use it in Inline Objective C code? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2016 #2 Code: Copy App.IdleTimerDisabled = True However it has nothing to do with background timers. It prevents the device from sleeping while your app is in the foreground. You can use background fetch mode if you want to run code in the background. Upvote 0
Code: Copy App.IdleTimerDisabled = True However it has nothing to do with background timers. It prevents the device from sleeping while your app is in the foreground. You can use background fetch mode if you want to run code in the background.
C cloner7801 Active Member Licensed User Longtime User Oct 30, 2016 #3 Erel said: Code: Copy App.IdleTimerDisabled = True However it has nothing to do with background timers. It prevents the device from sleeping while your app is in the foreground. You can use background fetch mode if you want to run code in the background. Click to expand... I want to check battery level in background in timer and need to active timer in background How use fetch background in app? Note i know how use it but i cannot use for check battery level Thanks Upvote 0
Erel said: Code: Copy App.IdleTimerDisabled = True However it has nothing to do with background timers. It prevents the device from sleeping while your app is in the foreground. You can use background fetch mode if you want to run code in the background. Click to expand... I want to check battery level in background in timer and need to active timer in background How use fetch background in app? Note i know how use it but i cannot use for check battery level Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2016 #4 cloner7801 said: I want to check battery level in background in timer and need to active timer in background Click to expand... You cannot run a timer in the background. Background fetch: Background Fetch (Downloads) Note that Apple will not approve your app if you are using it to monitor the battery. Upvote 0
cloner7801 said: I want to check battery level in background in timer and need to active timer in background Click to expand... You cannot run a timer in the background. Background fetch: Background Fetch (Downloads) Note that Apple will not approve your app if you are using it to monitor the battery.
C cloner7801 Active Member Licensed User Longtime User Oct 30, 2016 #5 Didn't exist way to check battery level in background and play audio? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2016 #6 Technically yes. But Apple will not approve it. You can read more about the background allowed tasks here: https://developer.apple.com/library.../BackgroundExecution/BackgroundExecution.html Upvote 0
Technically yes. But Apple will not approve it. You can read more about the background allowed tasks here: https://developer.apple.com/library.../BackgroundExecution/BackgroundExecution.html
A ajk Active Member Licensed User Longtime User May 13, 2020 #7 You can play in background and count the time... Approved by Apple Upvote 0