iOS Question BLE and Background Fetch

Filippo

Expert
Licensed User
Longtime User
Hi,

can you use "Background Fetch" with BLE to receive data in the background for a short period of time?
If so, how does it work?

Thank you in advance for your response.
 

Filippo

Expert
Licensed User
Longtime User
It might work. You should test it.


Nothing special. The app will start and the Application_FetchDownload event will be raised. You should start the BLE task there. Do remember that it will only work for about 30 seconds. The process will then be killed.
Hi Erel,

Thank you for your reply.

I think I have found a better solution to my problem.
During the Application_Background event, I send the Cash-ON command to the Arduino device, and during the Application_Foreground event, I send the Cash-OFF command.
When Cash-OFF is activated, the Arduino device sends all data (is just a variable that is counted high) at once.
 
Upvote 0
Top