Oh, yeah extra doesn’t work in 4.0. you need to use 3.8 then. Jsonutils block will not work in background. you have to create the function GetObjectByIndex same way as in the example i gave you in Get value function. You need to create jsonutils component as well. Or alternatively with 4.0 you can create a procedure with jsonutils as you would normally and call the procedure from the background task. There is an example download image procedure somewhere in this topic.
friend as in sending the result of the procedure to the simple notification component
Hi, you cannot create a variable when the procedure is called
The MakeExtra block was replaced in favour of other things, if you really want to achieve it then you would need to call me.call(ProcedureName)
through java which would return the result.
When you need to call things dynamically like when an event is triggered, you would need to work with Java for better functionality.
Else incase you are using a foreground mode, then you can just call them through procedures and that would work out.
Hi, in the notificar procedure you cannot use blocks like that, you have to use actual components.
Use DateTools By Sunny Gupta DateTools and Create a Proc same like GetMinSec to get Hour Minutes and Seconds Using Split text blocks.
Hello Koders,
I am trying to use Background tasks to run a proc or button click event to send some offline data to Google sheet. It seems that Click event is not registered or proc is not working too.
Please guide me.
NetworkCheckerButtonClick (1).aia (498.5 KB)
No, you cant create Visible components in the background.
Hello developers.
I would like to make the idea of sending notifications through a Google spreadsheet and extension of the Notification Style. I have not tried it yet, but I do not know how to use it.
Can this idea be done
and also not in a hurry when you have free time.
Thanks for this mighty extension.
Ali from Iraq
How ask permission ?
for “Autostart” permission or
“Show on Lock screen” and “Display pop-up windows while running in the background” permission
Plz help
You can see some examples please
Hey friend, you cannot ask for AutoStart permission at runtime currently.
So, How Xiaomi/Oppo or … users, receive notification when app not alive and closed?
I found solution from here and this link but i don’t know how add this code.
Plz help
public class AutoStartHelper {
/***
* Xiaomi
*/
private final String BRAND_XIAOMI = "xiaomi";
private String PACKAGE_XIAOMI_MAIN = "com.miui.securitycenter";
private String PACKAGE_XIAOMI_COMPONENT = "com.miui.permcenter.autostart.AutoStartManagementActivity";
/***
* Letv
*/
private final String BRAND_LETV = "letv";
private String PACKAGE_LETV_MAIN = "com.letv.android.letvsafe";
private String PACKAGE_LETV_COMPONENT = "com.letv.android.letvsafe.AutobootManageActivity";
/***
* ASUS ROG
*/
private final String BRAND_ASUS = "asus";
private String PACKAGE_ASUS_MAIN = "com.asus.mobilemanager";
private String PACKAGE_ASUS_COMPONENT = "com.asus.mobilemanager.powersaver.PowerSaverSettings";
/***
* Honor
*/
private final String BRAND_HONOR = "honor";
private String PACKAGE_HONOR_MAIN = "com.huawei.systemmanager";
private String PACKAGE_HONOR_COMPONENT = "com.huawei.systemmanager.optimize.process.ProtectActivity";
Hello. Can anyone help me with this extension?
I want to display the note after 12 hours when the application is closed
@Xoma
How do I save the result of two events in a variable? When event 1 is executed, it returns true as a result and when event 2 is executed, it returns false as a result, the idea is to execute functions according to the stored value (false, true)
No, that won’t be implemented, these things may not work in some years, there is an alternative thing which I will add.
You try things, it is bad to ask for things every time
I know this is difficult but, I am not online all the time these days.
I noticed that when the “Show on Lock screen” and the “Display pop-up windows while running in the background” permission are active at the same time, it’s just like the “Autostart” permission one is active on its own and no need for “Autostart” permission to be active or not. Can anything be done to make them automatic ask permission?
Yes actually for MIUI devices there is a way to check the AutoStart permission.
I haven’t implemented it yet, more testing is needed.