Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

URLHelper on Ipad

Hi


we have noticed interest in opening the Email client on Ipad from the mobile App.   Unfortunately, sap.m.URLHelper does not work there, but we have a nice solution for it.


if (typeof cordova === "undefined") { // Browser

 

  sap.m.URLHelper.triggerEmail(mail);

 

} else { // Phonegap installed app

 

  var urlHelper = window.open("mailto:" + mail, "_blank");

  setTimeout(function() {

 

            urlHelper.close();

 

        }, 1000);

}


If we are on a browser, then SAP URLHelper will be used.  If we are in the mobile app, then window.open is used, along with a small timeout before closing the dialog.

Enjoy !


Julian


1 person has this question
Login or Signup to post a comment