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
245 stars 182 forks source link

iOS should check if device canSendText #3

Closed kmcgill88 closed 5 years ago

kmcgill88 commented 6 years ago

Hi great work!

I noticed you are presenting the MFMessageComposeViewController without checking MFMessageComposeViewController.canSendText() here.

Apple says Always call this method before attempting to present the message compose view controller. A device may be unable to send messages if it does not support messaging or if it is not currently configured to send messages. This method applies only to the ability to send text messages via iMessage, SMS, and MMS.

If you are open to PR's I'd be happy to contribute.

rodydavis commented 5 years ago

Please make a PR i would love to check it out!