kotran88 opened a new issue #844:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/844


   html 
   
   
   
   function popClose(){
      window.open('app://close');
   }
   
   
   on web browser, I clicked button and it goes to popClose. 
   Ionic code is as below. 
   it comes to close web browser, but it's not closed on iOS...
   
   
   ```
   
     const browser = this.iab.create(url, '_blank', { location : 'no', toolbar 
: 'yes', zoom : 'yes' });
       browser.on('loadstart').subscribe(
         (event) => {
           console.log('###### browser start ###### ');
           console.log(event);
           if(event.url.indexOf("tel")>-1){
               console.log("gfogo")
               console.log(event.url.split("tel:")[1]);
               this.callNumber(event.url.split("tel:")[1]);
           }
   
           if(event.url == 'http://app://close' || event.url == 'app://close' 
|| event.url == 'close') {
             browser.close();
           }
           console.log('###### browser end ###### ');
           
         }
       );
   ```


----------------------------------------------------------------
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