Skip to content

[Technical Questions] App Crashes When Trying to Send Email in iOS Simulator #162

Discussion options

You must be logged in to vote

@jennleww There is no workaround for the simulator; you need to use the check if a user can send a mail first and if it returns no you can not instantiate the compose view controller, see e.g.,: https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontroller#Checking-the-availability-of-the-composition-interface

Alternative is to launch the mail app, as we do in: Spezi Contact, but that also won't work in a way that you can test this, you will have to test this on a real device and/or after your PR has been merged and is deployed to TestFlight.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nriedman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants