fluttercommunity / flutter_sms

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
https://fluttercommunity.github.io/flutter_sms/
MIT License
241 stars 176 forks source link

Send SMS directly (#57) #60

Closed SilkyPants closed 2 years ago

SilkyPants commented 2 years ago

Addresses issue #57 to allow the user to send an SMS message directly

muhammed3ly commented 2 years ago

please merge this 😆

zbarbuto commented 2 years ago

@rodydavis sorry not sure who to ping on this but you were the last one to merge a PR in this repo if you could PTAL 🙏

sigma-libra commented 2 years ago

@rodydavis Commenting to say this would be amazing to have, and you seem like the one to talk to to get things merged around here. Any chance we can get this feature soon?

rodydavis commented 2 years ago

Reviewing now

rodydavis commented 2 years ago

Does sending directly on android require the permission in the manifest?

In other words can it be opted out of?

I have had apps rejected because I used the API and wasn't considered a phone messaging app

zbarbuto commented 2 years ago

@rodydavis yes it does require that permission - we've had apps rejected ourselves for the same reason - the category for apps that are allowed to do this is very narrow.

I've made the default for this argument false and added a warning to the readme about using the feature.

The feature is more "opt-in" than needing to "opt-out" as if you do not add that manifest property and never call with sendDirect: true it is never used.

rodydavis commented 2 years ago

Ok that is wonderful to hear! I will merge this and publish soon!

I just wanted to make sure we don't have a lot of apps rejected over a version bump.

rodydavis commented 2 years ago

Published! https://pub.dev/packages/flutter_sms