I have also tested it in Android 11 too, and it works just fine :)
Finally now my app run in background amazing thank you very much
Supercool extension, been waiting for this from months...
Is there any list of components, functions and values that can be created in the background?
I do not have a list of components which can run in the background but some components like the Player
cannot run in the background. You will need to use something alternative to that.
Thank you for the extension Kumaraswamy.
I am testing and trying to learn how to use the tool.
I discovered the example app must be run as a compiled app; not in live development with Companion.
You said
This still seems to be true. The extension cannot be used with blocks that have an Event handler like
Events
LocationChanged( latitude , longitude , altitude , speed )
Indicates that a new location has been detected. Speed is reported in meters/second Other values match their properties.
StatusChanged( provider , status )
Indicates that the status of the location provider service has changed, such as when a provider is lost or a new provider starts being used.
I hope your are able to enable that feature.
I am testing on a Samsung A10 Tablet using Android 8.1. When I run the example and press Start, it produces an audible note (indicating Tasks is enabled); then it does not appear to do anything. What is supposed to happen? Pressing Stop, quits the Task (the app's icon disappears).
After clicking Button3 (Create component); nothing seems to happen. What am I not understanding?
What causes confusion is the example uses two extensions; your Tasks and the Notification. More explanation would be appreciated. Thanks When you add more features, this extension should be great.
Perhaps someone who has discovered how to use the extension could please post another example showing how to use the tool?
I came across this extension by @Taifun that can run Location Services in Background
It may not solve your problem completely but surely can help
@SteveJG This extension does not make it possible to receive real-time alerts or motion detection while running in the background. A → Foreground
service is required for this, as is the case with Taifun's Location Service extension.
https://developer.android.com/about/versions/oreo/background-location-limits
Thank you for the link Kaustubh! Taifun's extension works quite well with the LocationChanged Block. The app I built with it continuously records locations while the app screen is asleep, however, the extension is not yet able to provide a Notification while the app screen is asleep. I was hoping Background Tasks could do this. Not yet.
Is it possible to call and run a procedure in background?
From the description of the extension:
"A notifier will be displayed while the location service is running in the background."
If you want to display a Notification when the device is in idle (sleep) mode (screen off), you can use my extension:
Hello all, create a component button is used here to save all the tasks which will be executed when the service is started. The InvokeComponent
has a parm called time
which means the time in milliseconds the function will be invoked. All scheduling is done Asynchronously. That means in the compiled app you will need to click on create the component and then the
start service button. Note that the invoke time should not be over or the time given should not be passed to the extension to work (In a simple way you will need to start the service before time is over). If the time is already passed then I extension simply ignores the function not to make the app crash or to stop the service.
I have already made a topic here that to help with the issue but not yet got a reply which solves:
It is possible to make events for a specific component for example a clock. But do not find it possible to make it for all the components created dynamically.
It is possible to keep updating or tracking the user location, just need a block that can directly return the details, this can be repeatedly called until a specific time, delay and interval by using the executeFunction
block then saving or uploading the data. But please wait for the next update.
Is it possible to call and run a procedure in background?
I don't find it possible to do it.
Thank you for the explanation. Got it! What was missing was is that is necessary to press Create component prior to Start.
Certainly. Will follow the development. Thank you.
Congratulations !!!
Thanks my old friend
what tasks can this extension run? background music player? launch notification by date? launching a notification on time?
Kumaraswamy already indicated some components like the Player
cannot run in the background in post #21 . He also indicated you can not use it with Event Blocks yet for any components.
Be aware, the extension is still in early stages of development. Have you tried the extension to do any tasks?