Macro run at Boot

Snurre

Well-known member
Hey all, hope you all had a nice christmas 😊
I just have a little question, I want to run a macro when the phone boots
What is best as trigger 'Device boot' or 'Macrodroid Initialised' ?
Have a nice day 😉
 

Snurre

Well-known member
I would say device boot as macrodroid initialized would run each time macrodroid is started or restarted (which can happen daily).
Yeah I get your point, but I've got MD running 24/7 so that should not be a problem?
My thoughts was just that a macro can't run before MD is fully initialized, or what?
So is boot to prefer, I really don't know 🤔
 

Abalsam

Active member
Boot definitely. My point was that android tends to restart app/services from time to time (even if running 24/7 which also mess up things like stopwatch triggers by the way). So if you are looking for something to run only at device boot select that trigger. On the other hand, if you want to make sure something is active/reset when macrodroid starts, select macrodroid initialized (but be prepared for the macro to start at odd hours anytime macrodroid is updated in Google play or Android restarts it). I hope that makes sense.
 

Josué García

MacroDroid Support
Staff member
Yeah I get your point, but I've got MD running 24/7 so that should not be a problem?
My thoughts was just that a macro can't run before MD is fully initialized, or what?
So is boot to prefer, I really don't know 🤔
Macrodroid can be rebooted by the system or manually by the user, the best way would be to Device Boot.
(initialized macrodroid could generate some false positives).
 

tanutanu

Well-known member
Hey all, hope you all had a nice christmas 😊
I just have a little question, I want to run a macro when the phone boots
What is best as trigger 'Device boot' or 'Macrodroid Initialised' ?
Have a nice day 😉
it depends on your use cases:)
If you really want only one time, on boot is good enough.
If you have some dependency, the macro logic must run after another processes are going on, or make the UI experience better while starting up many processes, you can set a light weight macro, simply set a specific delay time to a stopwatch.

If you want the MD restart event for the purpose of restarting another app or background service, the Initialized action might be helpful:unsure:
 
Last edited:
Top