How to run whole app in background? I'm using location service. My aim is to detect, connect and write to BLE when my app is on background state. So I have 2 option, run whole app in background or execute function when I enter background state. But when I try to call function, it doesn't worked.
Asked
Active
Viewed 108 times
1

Susy Valentina Rahardjo
- 312
- 1
- 5
- 21
-
1tried writing in "func applicationDidEnterBackground(application: UIApplication) {}" ??? – DHEERAJ May 15 '17 at 05:21
-
go through the document https://www.raywenderlich.com/143128/background-modes-tutorial-getting-started – Shubham bairagi May 15 '17 at 05:26
-
Please check below post.. http://stackoverflow.com/questions/19042894/periodic-ios-background-location-updates – Dimple Shah May 15 '17 at 05:35
-
I've tried. I entered background state and then i can print something, but when i want to call another complex function, it's not working @DHEERAJ – Susy Valentina Rahardjo May 15 '17 at 05:43
-
I've tried that also, but thats not what i want. @Shubhambairagi – Susy Valentina Rahardjo May 15 '17 at 05:44
-
Can you show your code? Have you read the section on background operation in the core Bluetooth programming guide? – Paulw11 May 15 '17 at 08:55