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 2020/09/16 14:20:30 UTC
[GitHub] [cordova-ios] dcxn opened a new issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
dcxn opened a new issue #988:
URL: https://github.com/apache/cordova-ios/issues/988
# Bug Report
## Problem
After upgrading from `cordova-ios@5.1.1` to `cordova-ios@^6.0.0`, apps that connect to a Firebase Realtime DB start opening long polling URL's externally on safari after reconnecting to the internet, moving the user away from the app into a meaningless URL page. Currently we can only attribute this to the platform changes starting with 6.0.0, since this behaviour is not present on 5.1.1.

### What is expected to happen?
Firebase long polling (and possibly other) requests performed on the background should not be randomly catched and opened externally on safari, confusing and moving the user away from the app.
### What does actually happen?
When reconnecting, the app opens the system safari browser with a random meaningless URL for the user, such as
`https://{x}.firebaseio.com/.lp?dframe=t&id={x}&pw={x}&ns={x}`
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
This can be reproduced on an ionic fresh starter app with cordova and minimal firebase configuration to load data from Firebase Realtime DB.
1. Install and open the app on a real device
2. Disconnect from internet - firebase wont be able to use websockets and fall back to long polling requests and retries
3. Connect to the internet - behaviour seen on .gif above
Currently, downgrading to `cordova-ios@5.1.1` seems to be a way to stop the behaviour.
Also noticed the new feature [Add preference for webview window handling](https://cordova.apache.org/announcements/2020/06/23/cordova-ios-6.1.0.html) which could be related to this, but issue is present already in version 6.0.0. Setting up the `AllowNewWindows` preference doesn't produce any effect on this bug.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
Example of minimal cordova setup to replicate, used in a fresh ionic started app :
```
"cordova-ios": "^6.1.1",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Seen on real iPhone device with iOS 13.7.
### 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.
-->
Ionic ^5; Cordova ^10 CLI; cordova-ios@^6.0.0 platform;
Xcode Version 11.7 (11E801a);
## 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-ios] vickyanands edited a comment on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
vickyanands edited a comment on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-752796106
HI Timbru
Yes, I can also confirm that this is fixed. But if someone wants to have communication then allow-navigation is must in ios-config for external communication such as if you are doing for stripe integration. I have tested for stripe and that is working fine.
Thanks, Timbru for your help and if possible check-in into the main branch in npm to release a new version because many people are facing this issue and are looking for fixes elsewhere.
Vicky Anand
----------------------------------------------------------------
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-ios] bhimudev commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-704153645
@bond-ludafit below are the urls i have whitelisted
<allow-navigation href="https://*.licdn.com/*" />
<allow-navigation href="https://*.hotjar.com/*" />
<allow-navigation href="https://*.pixlee.co/*" />
<allow-navigation href="https://*.pixlee.com/*" />
<allow-navigation href="https://*.doubleclick.com/*" />
<allow-navigation href="https://*.doubleclick.net/*" />
<allow-navigation href="https://*.doubleclick.com/*" />
----------------------------------------------------------------
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-ios] x140l31 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
x140l31 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-771474857
> We are still facing this issue in `6.1.1`.
Looks good in 6.2.0
----------------------------------------------------------------
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-ios] x140l31 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
x140l31 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-771474857
> We are still facing this issue in `6.1.1`.
Looks good in 6.2.0
----------------------------------------------------------------
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-ios] amjadyahya1 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
amjadyahya1 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-730352029
I can confirm that it is happening also with cordova-ios 6.1.1
No solution till now?
----------------------------------------------------------------
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-ios] bhimudev commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-703529636
I have added all the urls to whitelist to avoid this issue, this was not required pre 6.0 release. one of our application is loading a webview, which loads js file form doubleclick.net, I have added doubleclick.net to whitelist to avoid opening js file in safari.
----------------------------------------------------------------
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-ios] bhimudev edited a comment on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev edited a comment on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-704153645
@bond-ludafit below are the urls i have whitelisted
<allow-navigation href="https://*.licdn.com/*" />
<allow-navigation href="https://*.hotjar.com/*" />
<allow-navigation href="https://*.pixlee.co/*" />
<allow-navigation href="https://*.pixlee.com/*" />
<allow-navigation href="https://*.doubleclick.com/*" />
<allow-navigation href="https://*.doubleclick.net/*" />
<allow-navigation href="https://*.doubleclick.com/*" />
----------------------------------------------------------------
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-ios] sagrawal31 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
sagrawal31 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-759280689
We are still facing this issue in `6.1.1`.
----------------------------------------------------------------
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-ios] adirgan commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
adirgan commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-695059846
I have the same problem but with another library that is the one for stripe-js, but it happens to me every time I start my app, it opens safari to the url of js.stripe.com.
----------------------------------------------------------------
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-ios] bhimudev commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-698736704
I have a custom web view component, every time the page load completes, safari is opening with a new URL with ads form doubleclick, not very sure, where its picking up form, however app working fine without opening any thing on safari if i use ios@5.1
----------------------------------------------------------------
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-ios] bhimudev commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-698736704
I have a custom web view component, every time the page load completes, safari is opening with a new URL with ads form doubleclick, not very sure, where its picking up form, however app working fine without opening any thing on safari if i use ios@5.1
----------------------------------------------------------------
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-ios] vickyanands edited a comment on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
vickyanands edited a comment on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-752796106
HI Timbru
Yes, I can also confirm that this is fixed. But if someone wants to have communication then <allow-navigation > is must for external communication such as if you are doing for stripe integration. I have tested for stripe and that is working fine.
Thanks, Timbru for your help and if possible check-in into the main branch in npm to release new version because many people are facing this issue and are looking for fixes elsewhere.
Vicky Anand
----------------------------------------------------------------
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-ios] timbru31 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-734276612
We've just merged a PR that could fix the issue you are describing. Could one of you test the current git master and see if the problem is solved? (`cordova platform add https://github.com/apache/cordova-ios`
----------------------------------------------------------------
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-ios] vickyanands commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
vickyanands commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-752796106
HI Timbru
Yes, I can also confirm that this is fixed. But if someone wants to have communication then "<allow-navigation href=""> is must for external communication such as if you are doing for stripe integration. I have tested for stripe and that is working fine.
Thanks, Timbru for your help and if possible check-in into the main branch in npm to release new version because many people are facing this issue and are looking for fixes elsewhere.
Vicky Anand
----------------------------------------------------------------
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-ios] amjadyahya1 commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
amjadyahya1 commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-734300450
I have tested it.. and can confirm that this bug has been fixed, it no longer opens an external url.
----------------------------------------------------------------
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-ios] timbru31 edited a comment on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
timbru31 edited a comment on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-734276612
We've just merged a PR that could fix the issue you are describing. Could one of you test the current git master and see if the problem is solved? (`cordova platform add https://github.com/apache/cordova-ios`)
----------------------------------------------------------------
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-ios] adirgan commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
adirgan commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-698035353
any help from anyone with this problem?
it is very easy to reproduce the problem, put the following in the index.html in the head
`<script src = "https://js.stripe.com/v3/"> </script>`
and compile for ios with cordova-ios@^6.0.0, when you open the app it immediately opens a safari window called that url `https://js.stripe.com/v3/`
----------------------------------------------------------------
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-ios] bhimudev edited a comment on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bhimudev edited a comment on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-704153645
@bond-ludafit below are the urls i have whitelisted
allow-navigation href="https://*.licdn.com/*"
allow-navigation href="https://*.hotjar.com/*"
allow-navigation href="https://*.pixlee.co/*"
allow-navigation href="https://*.pixlee.com/*"
allow-navigation href="https://*.doubleclick.com/*"
allow-navigation href="https://*.doubleclick.net/*"
allow-navigation href="https://*.doubleclick.com/*"
----------------------------------------------------------------
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-ios] bond-ludafit commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bond-ludafit commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-703272189
I am experiencing the same behaviour with the firebase page as the OP.
----------------------------------------------------------------
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-ios] bond-ludafit commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
bond-ludafit commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-703593679
@bhimudev can you provide an exmaple of where these urls were whitelisted?
----------------------------------------------------------------
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-ios] vickyanands commented on issue #988: iOS Platform opening URL's externally on safari after reconnecting to internet
Posted by GitBox <gi...@apache.org>.
vickyanands commented on issue #988:
URL: https://github.com/apache/cordova-ios/issues/988#issuecomment-716219609
I have the same issue with ios app using stripe. The app is also getting rejected because of bad user experience even in testflight.
----------------------------------------------------------------
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