Ok I'll try to answer from 1 account.
This problem seems to have the same roots as the one I described earlier in this post:
https://groups.google.com/g/automate-user/c/veK6TzjNgZ4There I was able to wake up the functions of the phone with a "device keep awake" block with an illumination flag. But here it cannot be used, and the wake-up flag in the delay block apparently does not work to the extent necessary to prevent the automate from being put to sleep. I hope the developer can help with this.
The application as a whole does the following:
1) Shows location data and sends it to an emergency number in case of a call there.
2) Sends location data when the SOS button is pressed.
3) Returns data by location when receiving SMS with a password.
Additionally, it makes sure that the GNSS is "warm".
https://llamalab.com/automate/community/flows/44347воскресенье, 3 сентября 2023 г. в 18:26:48 UTC+3, Иван Петров: