This is more of an open discussion than a solution.
According to this thread StartServiceAt uses the Android AlarmManager to do its tricks.
While googling Android AlarmManager I came across this hit which I found most interesting:
https://stackoverflow.com/questions/34729966/alarmmanager-not-working-in-several-devices
Basically the discussion revolves around how some phone manufacturers add "power/battery saving" apps that pay no attention to AlarmManager settings and kill apps as they please.
I have looked at the 2 android phones I use to run apps that use StartServiceAt in Service_Start to create a continuously running app and found both of them had "power/battery saver" apps and both were set to destroy my continuously running apps at some point.
I have now reconfigured the "power/battery saver" apps to leave my apps alone.
I will report back in this thread what the ultimate effect is.
One other thing that came out of the interesting hit was the suggestion of Android devices running "vanilla Android" - i.e. with out battery savers.
Does anyone know of such a "vanilla" device?
According to this thread StartServiceAt uses the Android AlarmManager to do its tricks.
While googling Android AlarmManager I came across this hit which I found most interesting:
https://stackoverflow.com/questions/34729966/alarmmanager-not-working-in-several-devices
Basically the discussion revolves around how some phone manufacturers add "power/battery saving" apps that pay no attention to AlarmManager settings and kill apps as they please.
I have looked at the 2 android phones I use to run apps that use StartServiceAt in Service_Start to create a continuously running app and found both of them had "power/battery saver" apps and both were set to destroy my continuously running apps at some point.
I have now reconfigured the "power/battery saver" apps to leave my apps alone.
I will report back in this thread what the ultimate effect is.
One other thing that came out of the interesting hit was the suggestion of Android devices running "vanilla Android" - i.e. with out battery savers.
Does anyone know of such a "vanilla" device?