B4A Tutorial Background location tracking - Erel    Jul 03, 2024   (50 reactions) So the solution is to add a Receiver that starts after boot (see manifest editor), checks whether we have the permission and then starts the service with a call to StartForegroundService sub. Note that this sub doesn't actually moves the service to the foreground state. Instead it tells the system t B4A Question Background location tracking - DonManfred (first post)    May 10, 2024   (1 reaction) It is already part of the Example. A notification is generated.
Look at the example.
You don´t have another way than a notification. Your app is in the background and no visible activity is shown.
You can show the location however you like if your app is in the foreground. B4A Question Service (httputils2service) Destroy - Erel (first post)    Jan 20, 2023   (1 reaction) Start with this example: Background location tracking B4A Question Background location tracking - KMatle (first post)    Jun 06, 2020   (2 reactions) Use an activity and add that label. From the service call a sub in it from the service (delayed) with a parameter (string with the data). Inside the sub set the label's text. B4A Question Run Bluetooth from a service - Gandalf (first post)    Jun 22, 2022   (1 reaction) Hi Yimcy, Use Background location tracking example as base for your project to make it working in background. If you don't need GPS then just don't load it. Next time please create a separate forum thread for your question. B4A Question FusedLocationProvider requesting location in the background - JohnC (first post)    Feb 18, 2022   (1 reaction) If you don't need to obtain the user's location in the background, then remove that ability from your app.
But if you need background location tracking, then you need to do two things:
1) Log into your google developer account and look for a way to "successfully complete a console-based declaratio B4A Question Background location tracking - address - Erel (first post)    Sep 25, 2020   (1 reaction) It is called geolocation or geocoding. Many relevant discussions. Here is one: https://www.b4x.com/android/forum/threads/b4x-google-geocoding-rest-api.83870/ B4i Tutorial Background location tracking - Erel    Sep 09, 2018   (5 reactions) iLocation library allows you to track the device location when your app is in the foreground.
Using the code posted in this tutorial you can mark your app as a special kind of app that requires background location updates and then your app will continue to run in the background and receive location B4A Question Background location tracking - Sandman (first post)    Feb 08, 2024   (1 reaction) Also: Please note that some devices take their sweet time to start the app after boot. It's been some time since I used this, but I think I saw it delayed at least five minutes or so.
(I haven't read anything about the cause for this, but I imagine there are historical reasons, where 100 apps insta B4A Question Background location tracking - Peter Simpson (first post)    Jul 15, 2019   (3 reactions) When an activity is not visible to the user it wil be stopped, that's how Android works, that why you are supposed to stored things like timers in the Starter module @scottie.
https://www.b4x./?query=Activity+cycle Page: 1   2   3   4   5   6   7   Powered by ColBERT |