Scripts on Android Enterprise
Thank you for your post,
does your device go offline when you try to perform this task? can you please verify what is the sleep time of the device and also do you have dose mode enabled on the device or feature control profile which has doze mode enabled?
Technical Support | SOTI Inc. |1.905.624.9828 | firstname.lastname@example.org | www.soti.net |
It seems that you try to kill an application and then restart it. Based on what you described, I would suggest you to add time delay between the kill and restart operation using "sleep #" script command. I would try with 3 -or 5-second delay if I were you.
The device remains online throughout all of this process. The devices are set to lock after 10 minutes of inactivity and doze mode is disabled on our devices.
Thank you for your suggestion of a time delay, I will try that now.
If 3- or 5-second delay doesn't work, you can try with a longer delay (say 25-30 seconds). If it works, reduce the delay gradually in more test(s) until the mechanism start to fail.