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/01/25 06:50:29 UTC

[GitHub] [cordova-plugin-inappbrowser] kotran88 opened a new issue #844: inappbrowser app://close is not working on iOS

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



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


[GitHub] [cordova-plugin-inappbrowser] techrationaldev commented on issue #844: inappbrowser app://close is not working on iOS

Posted by GitBox <gi...@apache.org>.
techrationaldev commented on issue #844:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/844#issuecomment-903073373


   Use const browser = this.iab.create('https://ionicframework.com/','_system','hidden=no');
   and try!


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

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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


[GitHub] [cordova-plugin-inappbrowser] jcesarmobile commented on issue #844: inappbrowser app://close is not working on iOS

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #844:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/844#issuecomment-776889591


   can you provide a sample app?


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


[GitHub] [cordova-plugin-inappbrowser] marshall86 commented on issue #844: inappbrowser app://close is not working on iOS

Posted by GitBox <gi...@apache.org>.
marshall86 commented on issue #844:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/844#issuecomment-815845661


   the issue is related to:
   
   https://github.com/apache/cordova-plugin-inappbrowser/issues/290
   https://github.com/apache/cordova-plugin-inappbrowser/issues/649
   https://github.com/apache/cordova-plugin-inappbrowser/issues/423
   
   apparently if the browser window isn't visible you can't close it. I think the way the page is opened it's the issue.
   
   I'm in a situation where i need to close the window when the app goes in background and i can't unless i first show it and then close it and this doesn't make any sense.
   
   Beside, it's different issue, on ios, the page doesn't go fullscreen but where there is the notch i can see some space in the top.
   
   Please provide assistance.
   
   Thank you and regards


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