Skip to content
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

Open
sdyomin opened this issue Feb 28, 2023 · 4 comments
Open

Fail to send SMS (SmsManager problem) #183

sdyomin opened this issue Feb 28, 2023 · 4 comments

Comments

@sdyomin
Copy link

sdyomin commented Feb 28, 2023

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.

@vigneshtnj
Copy link

vigneshtnj commented Mar 10, 2023

SmsManager problem occurs below android 12, no problem on android 12 and 13

btw, where is this file "SmsController.kt," located ?

@Belveloper
Copy link

Belveloper commented Mar 13, 2023

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/

@vigneshtnj
Copy link

The answer is from #149
above link solved my problem

@suhardik
Copy link

try this solution

#149 (comment)

hope this help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants