You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/01 08:37:43 UTC

[GitHub] [cordova-plugin-inappbrowser] hanifmhd commented on issue #830: Can't open mailto: / tel: / sms: links in IAB under iOS: URL not supported

hanifmhd commented on issue #830:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/830#issuecomment-770677048


   Hi, 
   i tried to running `tel:`  function in inAppbrowser, but it's not working, is there any solution?
   
   var url = "https://blablabla";
   var target = "_blank";
   var options = "location=yes";
   var inAppBrowserRef = cordova.InAppBrowser.open(url, target, options);
   
   function messageCallBack(params){
      var json = JSON.stringify(params.data) || "";
       if (params.data.type == "Call"){
           // alert('run tel: ');
           cordova.InAppBrowser.open('tel: 1234567890',  '_system', 'hidden=yes', 'location=yes');
       }
   }
   
   inAppBrowserRef.addEventListener('message', messageCallBack);


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org