Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dosent work if Native Ios "mail" app isnt set up #54

Open
frederikw03 opened this issue Oct 24, 2020 · 2 comments
Open

Dosent work if Native Ios "mail" app isnt set up #54

frederikw03 opened this issue Oct 24, 2020 · 2 comments

Comments

@frederikw03
Copy link

Nothing happens on ios when i click my open mail button, if the mail app isn't set up ?
is there a way to check or an exception i can use to determine if it opens or not?
thanks

@haliltprkk
Copy link

You can basically catch the error with catchError function like this

FlutterEmailSender.send(email).catchError((error) {});

@mbarmettler
Copy link

mbarmettler commented Oct 15, 2021

i'm facing the same issues here.
on Android it works as expected - show pop-over to sleect which app to send with.
on ios nothing happens.
mayber its something different - but why it works on android?

1-10-15 13:30:58.226542+0200 Runner[3054:1901009] [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..1: 2

#0 List.[] (dart:core-patch/growable_array.dart:254:60)
#1 new Version.fromString (package:data/models/version.dart:36:46)
#2 AppVersion.CurrentVersion (package:infrastructure/app_scope_constants.dart:22:20)

#3 SettingsController.sendLog (package:infrastructure/controller/view_controllers/settings_controller.dart:108:28)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants