Silviu Ion created CB-14055:
-------------------------------
Summary: Opening a link in some third party apps merges the third
party app with our own
Key: CB-14055
URL: https://issues.apache.org/jira/browse/CB-14055
Project: Apache Cordova
Issue Type: Bug
Environment: Confirmed on Android 6.0.1 and up. Cordova 6.4.0 (can't
update for other reasons). Cordova-plugin-inappbrowser 3.0.0
Reporter: Silviu Ion
Attachments: Screenshot_20180426-095002.png
We've run into a most interesting issue with the cordova-plugin-inappbrowser.
Normally, opening a link externally works fine. For example, opening a link to
our Facebook page in Chrome or the OS's native browser creates and switches to
an instance of that browser, completely separate from the original app.
Opening a special link such as the fb://page/pageID will open the official
Facebook app, and it will be completely separate from the original app. So far,
so good. All the behaviour is as expected and desired.
The problems arise when we open a regular link
(https://www.facebook.com/pageName) in a third party Facebook client -
specifically the Friendly client for Facebook. The Friendly app will seemingly
open and display the correct content. However, once this third party app is
open, it is MERGED with the original app.
To clarify: We have our Cordova app (which we'll call SomeApp) which has a
button running this:
{code:javascript}
cordova.InAppBrowser.open('https://www.facebook.com/pageName', '_system',
'location=no');
{code}
You press the button, select the Friendly app, select 'Just Once', and the
Friendly app displays the correct page. Now, if you press the Back button
(physical or otherwise), the app doesn't switch back to SomeApp.
Worse still, if you press the 'recent apps' button on your phone, SomeApp will
be gone. What the recent apps screen will show is a tile where the name of the
app is SomeApp, but the content is actually the Friendly app.
If it's unclear, take a look at the attachment. That tile's logo and content is
the Friendly app, and the name is our own app. It is not possible to go back to
our app without first closing this broken setup.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]