Closed 0xdhu closed 4 years ago
Are you testing on a physical device, or through the simulator?
On iOS it required the default mail app to work. And that error is returned when it is not found.
Thank you for your quick response. I am testing in real physical device.
can you please tell me how to set the default mail app to work?
its the pre installed mail app by apple https://apps.apple.com/us/app/mail/id1108187098.
On Tue, Jul 21, 2020 at 1:54 PM CuiYongHu notifications@github.com wrote:
Thank you for your quick response. I am testing in real physical device.
can you please tell me how to set the default mail app to work?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taljacobson/flutter_mailer/issues/30#issuecomment-661785454, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDQIUJ53ECNHWTHJ5VTOA3R4VXWXANCNFSM4PDNIPXA .
I have just installed mail app from appstore. And I build app to my iphone again. but it has same problem.....
If at least one email account is enabled on the device, the following call should return YES:
[MFMailComposeViewController canSendMail] Conversely, if all accounts are disabled/removed, it will return NO.
https://stackoverflow.com/a/3671759/8469022
the ios code that is returning the UNAVAILABLE
error uses MFMailComposeViewController canSendMail
which returns a boolean response for availability of the service. since i cant reproduce your error something in the stackoverflow link might be relevant
Yes. For now, any email account was not enabled to my device. Let me check after enable my email account to device. Thank you.
wow. Great I works perfect. Thank you so much to @taljacobson
Hello. While using flutter mailer package in iphone version, I have this issue. `[VERBOSE-2:ui_dart_state.cc(166)] Unhandled Exception: PlatformException(UNAVAILABLE, default mail app not available, null)
0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:570:7)
1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)