There is an android application that, when enabled or in the tray, "listens" to SMS messages. When receiving special SMS messages, the application responds by changing the elements in the main activation and launching the "siren".
Problem: if the application did not start after the phone was turned on, then when the SMS arrives, my application does not respond at all.
Necessary: even if the application did not start, it should respond to received messages. If I'm not mistaken, the application can not run itself. In this case, you need to display some kind of push notification.
Question: How to implement this function correctly?
Possible solution: as far as I understand, you need to implement Service (stickyIntent), which will run with the phone turned on and "listen" to all SMS. And what to do with notifications? I found information only on notifications with Google Cloud or my own servers. Can I implement notifications locally?