I now set up a small example to test, if it is possible to receive an sms in the background
piero.aia (103.0 KB)
Unfortunately it does not work like this... my guess is, the texting service is not available in the background...
So if you want a background solution, then you have 2 options
-
use the notification listener extension to listen to a new sms, see also Notification Listener (powered by itoox-wrapper) and Itoo, or
-
use the texting extension and check regularly, if a new sms arrived, see also my example here How can I activate clock in the background when exiting the application? - #9 by Taifun
and then use the alarmmanager extension to bring the app to the forground to start the phone call
Depending on your device you might have to ignore battery optimization to get it running, see also https://dontkillmyapp.com. Also most probably you will not be able to start the phone call automatically if the device is locked, you most probably have to first unlock it.
Taifun
