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

[ANDROID] Using broadcastreceiver to check if the message is sent or not #77

Open ahmed-ashraf opened 1 year ago

ahmed-ashraf commented 1 year ago

I used android "BroadcastReceiver" to check if the SMS is sent or not. The broadcast receiver will handle all types of message failures in android.

dongnqdev commented 7 months ago

@ahmed-ashraf How did you check sending status on android ? The message was returned before user actual press send button

ahmed-ashraf commented 7 months ago

This will work only when sendDirect = true. on the other side if sendDirect = false when the app opens the messages app when the user press the send button he will know the result from the messages app itself. Hope I didn't misunderstood your question @dongnqdev