• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Listening for SMS , even the app is closed or exit in Android O

  • Thread starter Thread starter Leo26781F104
  • Start date Start date
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.
 
Back
Top Bottom