To get location change events in the background you need background location permission
My paid locationservice extension is able to do it App Inventor Extensions: Location Service | Pura Vida Apps
What exactly do you mean by a time event? Usually you would use the alarmmanager functionality of the Android device to keep the battery usage as low as possible to trigger a background activity at a given time... my paid alarmmmanager extension could help with this... App Inventor Extensions: Alarm Manager | Pura Vida Apps
Please understand the difference between the 2 different types of service which can run in the background... see the itoo thread. Usually you would use a Foreground service.
Types of Service
A service is basically something that runs also while the app is not open or when the app is closed.
- Background Service: A non-visible background work that can be scheduled using Itoo.
- Runs silently without user noticing it.
- Vulnerable to being stopped by the system abruptly, can only run upto a few minutes in modern devices depending on the phone brand, OEM, OS installed, etc. (also see dontkillmyapp.com )
- Foreground Service: A user visible and recommended way to execute something in the background.
- Itoo is primarily based on supporting this service.
- Generally can work non stop for ever, but could be limited to a few days or less time depending on the phone brand you use.
- A permanent notification is shown while this service is active starting from Android 8 (Oreo).
Taifun