L
Leo26781F104
Guest
Hi All ,
I'm developing an app where I would listen / read the incoming SMS and display notification. When the app is in foreground , I'm able to do that. But I would have to monitor the incoming SMS when the app is not running.
I tried the Service , Intent service etc. all works fine when the app is in foreground but not when app is not running. Also before Android O , it was possible to run the services even when the app is killed or exit. But in Android O due limitations we are not allowed to keep services running .
Is there any way to do this ?
Please suggest how to do that.
I'm developing an app where I would listen / read the incoming SMS and display notification. When the app is in foreground , I'm able to do that. But I would have to monitor the incoming SMS when the app is not running.
I tried the Service , Intent service etc. all works fine when the app is in foreground but not when app is not running. Also before Android O , it was possible to run the services even when the app is killed or exit. But in Android O due limitations we are not allowed to keep services running .
Is there any way to do this ?
Please suggest how to do that.