Open sdyomin opened 1 year ago
SmsManager problem occurs below android 12, no problem on android 12 and 13
btw, where is this file "SmsController.kt," located ?
Same here smsManager works perfectly on android 12 13 but not working on android 11
And also i found that the plugin is no longer maintained Check their docs https://telephony.shounakmulay.dev/
The answer is from https://github.com/shounakmulay/Telephony/issues/149 above link solved my problem
try this solution
https://github.com/shounakmulay/Telephony/issues/149#issuecomment-1212695720
hope this help :)
Android-9, Samsung Galaxy S9+
Error thrown while sending SMSes (foreground). The reason: file SmsController.kt, the call
val smsManager = getSystemService(context, SmsManager::class.java)
returns null.
I've replaced it (locally) by
SmsManager.getDefault()
and that works on my devices.