Is it possible to create background task for android?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Losatu

I want to create a background task to create a push notification at certain time. It should be possible on android (and maybe on ios too), like explained here:

There are three types of tasks possible
Immediate
Deferred
Exact

https://developer.android.com/images/guide/background/task-category-tree.png

Is it possible to create such task with Godot or with the help of Godot plugin?

Edit: I would like to use the “Exact” task to notify the user at certain time. This should happen when the app is closed or minized.

:bust_in_silhouette: Reply From: Wakatta

Are you by chance talking about AsyncTasks?

Use a thread no plugins necessary

And Godot also has Deferred functionality

Thank you for your response.
I need something to work, while the app/game is closed or is in “doze” mode (minimized for example).

I will search for deferred functionality in godot…

Losatu | 2021-06-25 18:11

Oh ~~~~~~~~~
Then I misspoke with the limited info.
No sure if Godot natively supports that however

All Android functionalities are still available to you.
In Godot use the custom build option and in Eclipse or Android Studio you can build your app as desired

Wakatta | 2021-06-25 23:53