-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to send SMS (SmsManager problem) #183
Comments
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 |
The answer is from #149 |
try this solution 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.
The text was updated successfully, but these errors were encountered: