Ad

Broadcast Receiver Not Capturing Incoming Message

I am creating an Android application which is capturing the incoming messages and saving them into a local database. All functionality is working fine if I test the app on a Nokia 8.1 or (Pure Android, Stock Android OS). In the case of Custom ROM phones like MI(xiaomi), OPPO, VIVO. The Receiver is not receiving the incoming message if the app is running in the background. It's working fine if the app is in the foreground. Any suggestions would be very helpful for me. Thanks

I want to receive all incoming messages on every OS (Stock or Custom)

Ad

Answer

Actually I forgot to add Read SME Permission at runtime

Ad
source: stackoverflow.com
Ad