Skip to Content
0
Jul 27, 2020 at 03:55 PM

"mailto:" with openURL() in MDK not working for iOS

803 Views Last edit Jul 27, 2020 at 03:58 PM 3 rev

Hi Team.

Currently we have an MDK app and we want to implement the functionality of sending emails by opening the default email application in the related device (Android or iOS) using the standard "mailto:" URI scheme.

We are calling the "openURL" function based on the following blog:

Implement Deep Linking to Another App from an MDK App

https://developers.sap.com/tutorials/cp-mobile-dev-kit-deep-link.html

We are passing something like:

'mailto:email@domain.com?& subject=subject&body=body& target="_blank" ' as string in the "openURL" parameter. (We added this & target="_blank" checking some blogs as workaround, but did not work for iOS).

It is working in Android but is not working at iOS.

Could you please comment what could be the error here? Is there a different way for opening default email application in the device?

Thanks in advance for your comments.

Best Regards

Eduardo