Background Tasks extension [3.8 A] 🥳

Wow, it is interesting, thanks

1 Like

Hi, welcome, which version of the extension are you using?


Self-opening app functionality has been implemented and it's ready in version 4.0. You should be able to open the app when you shake it.

1 Like

Ideal for me: to be able to run my application in the background.

another solution: start my application (if possible in the background) every 6 hours and stay active for about 60 seconds, then close.

My application is made in App Inventor.
Receives data on soil temperature and humidity from NodеMCU with the appropriate sensors.

I'm still studying Background Tasks, but I miss the logic it works on!

2 Likes

"""Download

The extension is free for everyone to use.

[mod_edit: please do not post direct links to other developers extensions]

I get this extension from the 1st post. I double check and confirm that few blocks are missing.
btw i need some guideline or reference of how this extension works.will ya give me more detail ? such as the the component itself will register a services/task which call the function ?
anyway thanks alot for your reply ! :sweat_smile:

Hi, can you do some tests before doing anything? It will help you a lot.


Not sure if I missed to update any documentation, to start the service you will have to use the Start block.

giving up on this task extension stuff.Its too complicated to .It seems like user required to reverse engineering the code(block?) in order to understand the mechansim of how it works. I knew python and javascript which both are comprehensive and logical.May be i should learn kotlin to write android apps.
anyway thanks for your help! :grinning:

1 Like

Hi! I'm having a problem using this extension with Android 8.1 (On Android 11 works correctly). I have this bunch of code


which makes a Clock (Time_Temp) work in the background when clicking in a button, but when clicking an error is being thrown (setImportantWhileForeground). I've seen that this function has been added since Android 9 so I tried with Foreground=False in Start but still the same. Does this extentions only work in Android 9 onwards? Thanks!

2 Likes

Hi, this error was fixed in 3.7, did you try out the latest version of the extension?

1 Like

Hi! Yes, I have tried with 3.7 and 3.8 but same error was being shown. I attach a screenshot with the version I'm currently using. Thanks!
image

1 Like

I had the same error on android 8.1 and it was working well on android 11
just set latency to any value greater than 0, that worked for me

2 Likes

Oh it's working, thank you so much for your help!!! :smile: :smile:

3 Likes

Hi everyone,
I want to make an app where the users can add appointments to a calendar and be reminded about these appointments. The first part is working but not the second part. Is it possible to send a notification at the date and time of the appointment using this extension? Can anyone please help. Thank you so much,
Superdojo

Sorry i forgot to attach my block:


Hi, your missing to create the component.

Hi @Kumaraswamy,
Thank you for your answer. Can you please show me the block? and where do I put it? By the way great extension! Thank you,
Superdojo

EDIT: found the block. I was just wondering what does it mean?

Hi, that will create the component, you have to do this before you call any function.
Also in the CreateFunction's name socket parm, you have to attach the component Id there.

Hi @Kumaraswamy
Perfect, Thank you!
I just have one other question. For what I am aiming to do, should I use "tasks" or "function"?
thank you in advance.

You have to use the function method to create a thing that can be called.

I want the application I have made to check only 1 data from firebase in the background. So I want a warning when 1 data comes from firebase, but I can't. For example, if the "Alarm" data in firebase is 1, I want the phone to sound an alarm. If you can make a simple example of this, it will help many people here. Thank you very much for your work and help.

Hi Yusuf, welcome!

You should start with some examples, If you are stuck somewhere, then I'll help you out.

1 Like