jonamat commented on issue #898:
URL: https://github.com/apache/cordova-ios/issues/898#issuecomment-688904420


   > Right. But `mailto:[email protected]` do not work with 
`window.cordova.InAppBrowser.open()`
   
   for mailto you should use the window method
   
   I found this line on a recent working project
   ```
    window.open(`mailto:${process.env.EMAIL}?subject=${t('Status report')}`, 
'_system', 'hidden=yes,location=no');
   ```
   It opens the mail app, the `hidden=yes,location=no` should be a fix for iOS, 
but I'm not sure
   
   it works with
   ```
     "cordova-android": "^8.1.0",
       "cordova-ios": "^6.0.0",
       "cordova-plugin-androidx": "^2.0.0",
       "cordova-plugin-androidx-adapter": "^1.1.1",
       "cordova-plugin-browsertab": "0.2.0",
       "cordova-plugin-buildinfo": "4.0.0",
       "cordova-plugin-compat": "1.2.0",
       "cordova-plugin-customurlscheme": "5.0.1",
       "cordova-plugin-device": "^2.0.3",
       "cordova-plugin-firebase-messaging": "^4.0.2",
       "cordova-plugin-inappbrowser": "^4.0.0",
       "cordova-support-android-plugin": "^1.0.2",
       "cordova-support-google-services": "^1.4.0",
       "cordova-universal-links-plugin-fix": "1.2.1"
   ```
   
   config.xml
   ```
   <allow-intent href="mailto:*"; />
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to