Today I am going to announce this special Extension!
Background Tasks Extension
It allows you to run any function in background even after the app is closed(Even if it’s closed from recent apps), It also supports autostart and you can run any function on phone boot!
Thanks to @chaimk for sponsoring this extension!
A important message before showing blocks,
Many of you may ask that why is it not connected directly with procedure block?
Answer -> It’s possible to run a procedure with extension but it’s not possible to run that procedure in background(There is a long story that why it won’t work that you guys may not understand as it is related to android system)
So that’s why i have added these blocks which will only take 10 Minutes to understand
So i have also prepared a long documentation
Blocks With Docs
You cannot use other component blocks directly but here are the blocks which will help you to do that
CreateComponent Block : Use this block to create components with their id like MakeroidNotification Component with its id(Any you want)
CallFunction Block : Use this block to call any function of the component you created with its id,For example last time we created MakeroidNotification with its id “notif” so use the id notif here,Any function like SimpleNotification,and its values like title and message
RegisterEvent Block : Use this block to register any function to happen when any event occured(There is register function block for it,Shown below)For example you can Set a clock’s Timer event here and register any function(Single or multiple) to happen when event fires.
RegisterFunction Block : This block is is used to register any function and set a function id for it(The function id is needed in register event block).Every else his same like Call Function block.
IfBlock Block: Use this to trigger registered functions(with RegisterFunction block) if input is true
ReigsterIfBlock block: Use this to register a block to be called on event,Everything else is same to If Block
Start Block : Use this block to start the background task after every block is set,You can set a delay to start task after how much time.
SaveForBoot Block : Use this block to save the blocks to run when a Phone Boots.
SetAlarmForActivtiy Block : This block can set timer to open an activity after how much time you want,Even if the app is fully closed
StartAutoStartSettings Block : It can open autostart settings of your phone.
Blocks to show a new notification every 5 seconds
Blocks to show a notification when phone boots,It saves on button 1 Click
Blocks to play music in background
Blocks to send latitude to firebase every one minute
I have added an foreground service feature in this extension which is very useful!
It prevents app from killing in many cases,even task cleaner apps can’t clean it!
I shows a permananent notification(Which you want),You can set notification according to you
While using foreground service,it won’t be interrupted in any case,nor restart nor stop
It can be useful for music apps,downloading apps,app which need to do continuous task
Special thing about it is that it don’t need any permission to run…
It can run in any phone(event with custom rom phones)without any problem
Here you just have to create a ForegroundService component and set everything in it and then just run function with name startforeground which will start that foreground service with that notification.
The notification system for ForegroundService is fully based on @jarlissonlira2 this extension and its open-source code :
Thanks to all the beta testers
PayPal - 25 USD
PayTM - 1500 INR.