katzer / cordova-plugin-email-composer

Edit and send email messages
Apache License 2.0
345 stars 336 forks source link

Email Composer not working for IOS 13+ #366

Closed ocean999882 closed 2 years ago

ocean999882 commented 2 years ago

Hello,

The add-on works perfectly with Android, but not with iOS. I've tried with two iphones, both have not installed gmail, only the pre-installed mail application. Is it mandatory to install another application? Or should the default mail application open?

Thank you.

PetePrattis commented 2 years ago

Check in the info.plist if you have added the url scheme of mailer apps under LSApplicationQueriesSchemes, for example for iMail, gmail & outlook apps:

<key>LSApplicationQueriesSchemes</key>
<array>
<string>mailto</string>
<string>googlegmail</string>
<string>ms-outlook</string>
</array>

for more info https://github.com/katzer/cordova-plugin-email-composer/issues/363#issuecomment-948338728

danielehrhardt commented 2 years ago

The Default Mail App does not open on iOS 15. Should this work in the Simulator or do i have to use a real Device?

jfoclpf commented 2 years ago

Yes, you should try in a physical device to be sure it is not a problem with the plugin. Furthermore some simulators don't even have an email account configured and thus it might not open.

jfoclpf commented 2 years ago

Furthermore it may help to include this in config.xml under <platform name="ios">

    <edit-config target="UIFileSharingEnabled" file="*-Info.plist" mode="merge">
      <true/>
    </edit-config>
    <edit-config target="LSSupportsOpeningDocumentsInPlace" file="*-Info.plist" mode="merge">
      <true/>
    </edit-config>
    <edit-config target="UISupportsDocumentBrowser" file="*-Info.plist" mode="merge">
      <true/>
    </edit-config>
jfoclpf commented 2 years ago

duplicate of #363