Since Itoo v4.5.0, it is now possible to customise the app's manifest content for various kinds of background processing services.
Thus, the Itoo extension now supports the native LocationSensor component to be run in the background (even when the app is closed).
Steps
- Download the Itoo variant for background location ability: Itoo Manifest
- Import the extension to the IDE:
- Enable LocationUsage:
Example
-
Basic Start/Stop Itoo buttons and a label to display location updates (if the app is open):
-
Ask for location access and notification permission:
-
Start/Stop button functionality, and configuring the LocationSensor component:
-
Handle location updates and update the UI:
You may choose to do whatever is relevant to the data. In the example above, I'm sending it to a locally hosted HTTP server.-
The handler must follow the format
ComponentName_EventNamewithnarguments as the original event. In this case, the component name isLocationSensor1, and the event isLocationChangedwith4arguments. -
To call a procedure from the background that updates the UI, it must have a
ui_prefix. Thus, it will be called on the main thread of the application if active.
-
Download
Project: ItooLocation.aia (84.7 KB)
License: MIT






