Closed johnwargo closed 1 year ago
I'm guessing this is due to some new security restriction on apps sending SMS messages. Can someone confirm?
Not sure why, it could be a security restriction
However, take a look here: https://pub.dev/packages/flutter_sms#sending-direct With that approach (set sendDirect to true) you will not have that issue, tested it on Android 12 just now.
Hello, im facing the same problem i want my app to not opening the mobile sms app, i want it to send the message direct from my flutter application, if you found the right way to do that please let me know ..
@BRUHItsABunny that worked for me. thanks!
I created a new Flutter app today and added the
permission_handler
andflutter_sms
packages. When the app sends the SMS message, the device's Messages app opens to the selected recipient with the message text in the input box ready to send. I have to tap the send button to send the SMS. Is this expected behavior?Here's my Flutter environment:
and here's the code that sends the message: