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/03/22 23:57:26 UTC
[GitHub] [cordova-plugin-inappbrowser] JeffBerman opened a new issue #859: InAppBrowser opens then closes immediately
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:
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] JeffBerman closed issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
JeffBerman closed issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859
--
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] JeffBerman commented on issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
JeffBerman commented on issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859#issuecomment-804482836
Any suggestions are welcome... I've tried all troubleshooting I can think of to get this working again, but no luck (it used to work with an older IAB version and with UIWebView). Thanks!
--
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] JeffBerman removed a comment on issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
JeffBerman removed a comment on issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859#issuecomment-804482836
Any suggestions are welcome... I've tried all troubleshooting I can think of to get this working again, but no luck (it used to work with an older IAB version and with UIWebView). Thanks!
--
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] pratik-zwt commented on issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
pratik-zwt commented on issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859#issuecomment-860691663
I face the same issue. What did you do to work it perfectly?
--
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] JeffBerman commented on issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
JeffBerman commented on issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859#issuecomment-805466909
Apologies for this issue... the problem was on our end. Once we cleared it up, the IAB worked perfectly.
--
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] JeffBerman commented on issue #859: InAppBrowser opens then closes immediately
Posted by GitBox <gi...@apache.org>.
JeffBerman commented on issue #859:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/859#issuecomment-866376011
> I face the same issue. What did you do to work it perfectly?
Our app was mistakenly opening the URL twice via two different mechanisms, so when the user tapped on a button, it opened a URL in Chrome but also opened it in the in-app browser. Somehow this caused the IAB to immediately close after opening, and caused our app to exit out to its main screen.
--
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