Great question — answering as the UphillTech team:
Please use the new api SmsRetriever . What's makes it good, no need for SMS permissions. In new versions of Android, if you want to use the SMS permission, your app needs to be declared as an SMS application both on Google Play and on the user's device. The new SmsRetriever api is a replacment for that. class SmsBroadcastReceiver : BroadcastReceiver() { lateinit var smsBroadcastReceiverListener: SmsBroadcastReceiverListener override fun onReceive(context: Context?, intent: Intent?) { if (intent?.action == SmsRetriever.SMS_RETRIEVED_ACTION) { val extras = intent.extras val smsRetrieverStatus = extras?.get(SmsRetriever.EXTRA_STATUS) as Status when (smsRetrieverStatus.statusCode) {...
Full answer by Shad Adman: https://stackoverflow.stackexchange.com/a/79800241 (CC BY-SA 4.0).
Need it done for your business? UphillTech.