My app needs to run in the background to continue to communicate and log data from a WiFi adapter.
I have this working now by using the code from the Background location example.
Are there other options for the Background "reason"? What I mean is I use the following line which has a string of "location" which is what I am calling "reason".
What other choices are there besides "location"? Is there a WiFi string I should be using since that is the main reason the app needs to run in the background. The app also logs location data but that is secondary and is not always needed if the adapter indicates no movement possible.
For now I need to have the app keep GPS On or the app will stop running in the background. To save power it would be best if when the WiFi adapter signals no movement possible GPS could be stopped but the app continue to run getting data from the WiFi adapter.
I have this working now by using the code from the Background location example.
Are there other options for the Background "reason"? What I mean is I use the following line which has a string of "location" which is what I am calling "reason".
B4X:
#PlistExtra: <key>UIBackgroundModes</key><array><string>location</string></array>
For now I need to have the app keep GPS On or the app will stop running in the background. To save power it would be best if when the WiFi adapter signals no movement possible GPS could be stopped but the app continue to run getting data from the WiFi adapter.