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


   # Bug Report
   
   ## Problem
   
   Although it works perfectly on Android, the .open doesn't do anything on 
iOS. 
   
   The logs read : 
   To Native Cordova -> InAppBrowser Open InAppBrowser192389540 [options: url, 
.......]
   
   But nothing happens. Tried using the .show() method, and using hidden:no but 
still doesn't work. 
   
   ### What is expected to happen?
   
   Should open the URL when the function fires
   
   
   ### What does actually happen?
   
   Nothing, just that log I sent above
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   I followed the instructions on the official site, installed 
   @ionic-native/in-app-browser 
   cordova-plugin-inappbrowser
   used ionic cap sync (on both the PC for Android and the MAC for iOS)
   
   
   ### Command or Code
   
   `            const browser = this.iab.create(url, '_self', {
                   location: 'no',
                   hidden: 'no', // hides the browser but still loads the page
                   hideurlbar: 'yes',
                   zoom: 'no',
   
               });
   
               browser.on('loadstart').subscribe(event => {
   
                   if (event.url.includes('auth/federated-login')) {
                       browser.close();
   
                       let slug = event.url.split(".com").pop();
                       const formattedUrl = this.router.parseUrl(slug);
                       this.router.navigateByUrl(formattedUrl);
                   }
               });`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Catalina XCODE - Iphone SE (real phone) - 
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Angular 10 / Ionic 5 / Capacitor 6.10
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ x] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   


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