JeffBerman opened a new issue #859: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859
# Bug Report ## Problem In-app browser opens and immediately closes, without displaying any content. ### What is expected to happen? The browser should open and display content until user taps the "Done" button. ### What does actually happen? The in-app browser slides up from the bottom, then immediately disappears. ## Information This is a Cordova app that has existed for years, but I am now in the process of updating it to use WKWebView and have been ironing out various hiccups. On one part of the app, a button exists to open Google Maps to a custom location via the in-app browser, but this suddenly isn't working anymore. I changed the URL to simply `https://www.apple.com` but it still doesn't work. There are no messages in the Web Inspector console. When the link is opened, this appears in the Xcode console: ``` 2021-03-22 16:34:48.541744-0700 My App[604:38709] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2021-03-22 16:34:48.541828-0700 My App[604:38709] WF: _WebFilterIsActive returning: NO 2021-03-22 16:34:48.550917-0700 My App[604:38709] THREAD WARNING: ['InAppBrowser'] took '36.041016' ms. Plugin should use a background thread. 2021-03-22 16:34:48.568752-0700 My App[604:38709] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2021-03-22 16:34:48.568822-0700 My App[604:38709] WF: _WebFilterIsActive returning: NO 2021-03-22 16:34:48.568917-0700 My App[604:38709] Tried to show IAB while already shown 2021-03-22 16:34:48.684002-0700 My App[604:38709] [Snapshotting] Snapshotting a view (0x155f358e0, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES. 2021-03-22 16:34:49.138221-0700 My App[604:38709] No 2021-03-22 16:34:49.138892-0700 My App[604:38709] didStartProvisionalNavigation 2021-03-22 16:34:49.140189-0700 My App[604:38709] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE" 2021-03-22 16:34:49.281677-0700 My App[604:38709] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x155f33fc0>. ``` The CSP looks like this: `<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval' data: gap: https://ssl.gstatic.com;">` ### Command or Code cordova.InAppBrowser.open('https://www.apple.com', '_blank'); ### Environment, Platform, Device iPhone 6s, iOS 14.4.1 ### Version information Cordova: Cordova CLI 10.0.0, iOS platform 6.2.0, cordova-plugin-inappbrowser 5.0.0 and 5.0.1-dev macOS 10.15.7, Xcode 12.3, iOS 14.4.1 ## 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]
