[
https://issues.apache.org/jira/browse/CB-10868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333935#comment-15333935
]
Michel Reij commented on CB-10868:
----------------------------------
I did find a workaround to ease the pain a little: use a url shortener like
bitly or tinyurl to refer to the YouTube url. Doing that will present you with
a message box asking whether you want to open the link in YouTube (which refers
to the app, not the website). If you click the 'Open' button the app is opened
and the correct content shown. If you click 'Cancel', Safari is opened and a
white page is visible. Not exactly ideal, but better than no link at all.
Unfortunately, YouTube's own shortened url's -- https://youtu.be/xxxxxxxx -- do
not work. :-(
> iOS only - Can't open youtube links in _system when youtube app is installed
> ----------------------------------------------------------------------------
>
> Key: CB-10868
> URL: https://issues.apache.org/jira/browse/CB-10868
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin InAppBrowser
> Affects Versions: 6.0.0
> Reporter: Brian Mooy
> Labels: triaged
>
> I created a blank app, with the system browser plugin and attempted to open a
> link to youtube with the following javascript:
> window.open ('https://youtu.be/7E0fVfectDo', '_system')
> This works fine if the youtube app is not installed, but once the youtube app
> is installed, literally nothing happens. This appears to be a problem
> introduced with the new youtube 17.0 version that was released March 1st.
> There's no javascript errors in the console. No errors in Xcode's debugger
> output. Other links work fine. IE: window.open ('http://google.com',
> '_system') ; The key to it is the youtube app being installed on the phone.
> Removing the youtube app then opens the link into the browser. The prompt
> ("open this link in youtube") is not appearing, and as such is causing the
> issue.
> I am running cordova V 6.0.0, cordova-plugin-inappbrowser 1.2.1 and
> cordova-plugin-whitelist 1.2.1
> Cordova browser is on 4.1.0, iOS is on 4.0.1
> It may also be worth noting that it works fine on android - the problem only
> exists on iOS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]