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

ios 12.3.1 open email fails on first use #334

Closed
chriscarreck opened this issue Aug 7, 2019 · 2 comments
Closed

ios 12.3.1 open email fails on first use #334

chriscarreck opened this issue Aug 7, 2019 · 2 comments

Comments

@chriscarreck
Copy link

chriscarreck commented Aug 7, 2019

ipad pro
ios 12.3.1 (but also happens on other ios 12 versions)
Cordova 8.1.1
tried email-composer 0.8.15 and 0.9.2

making a call to cordova.plugins.email.open();

When the app is first installed and method called, the email briefly flicks open over the app, but instantly disappears again.
If i click the button to call the same method a second time immediately after the email disappears, it shows again ready for editing as expected.

I have noticed if i pass values to the open() method. The same thing happens, and when the email briefly appears, only the subject is populated. Body and to/from fields are empty.

I can replicate this by resetting and erasing the device, re-installing the app and it occurs every-time on first use when calling open().

When i debug the native code of the plugin, on first use of app opening an email for edit, i get the following trace:
2019-08-08 23:06:02.673501+1000 SOS[421:13879] Attempt to present <MFMailComposeViewController: 0x1018e1200> on <MainViewController: 0x10160e590> which is waiting for a delayed presention of <MFMailComposeViewController: 0x10203a600> to complete
2019-08-08 23:06:02.692081+1000 SOS[421:13879] [General] #CompositionServices _serviceViewControllerReady: NSError Domain=NSCocoaErrorDomain Code=4097

subsequent attempts do not get the NSError

@katzer
Copy link
Owner

katzer commented Sep 24, 2019

@chriscarreck I cannot reproduce that

@jfoclpf
Copy link
Collaborator

jfoclpf commented Nov 29, 2021

most likely duplicate of #363

@jfoclpf jfoclpf closed this as completed Nov 29, 2021
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