-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InAppBrowser does not open Youtube Links Properly #1034
Comments
can you provide a sample app? |
@jcesarmobile Unfortunately, due to confidentiality reasons, I am unable to share the actual application with you. However, would a video demonstration of the application suffice? |
No, a video doesn't suffice. |
@jcesarmobile Here is the sample app |
We ask for the source code, not an .ipa or .apk |
@jcesarmobile Apologies, please check this 🙏 |
That's not the source code, it's a .app. |
@jcesarmobile App.vue - https://github.com/mattprado21/sample-monaca-app/blob/master/src/App.vue
|
As I said, it can't be a monaca app, |
I'd say this is the same issue as described here #880. Intent links cannot be open with the InAppBrowser plugin. |
The reporter talks about different issues on android and iOS, but has provided iOS apps only and linked an android bug with the same problem they have on android, so this issue should only be about the iOS problem. |
I see, sorry for mixing this up then. I didn't get that this is only for the iOS bug. |
I might have the same issue as @siranjeevimurugesan reported - #1002. And I have additional issue for iOS.
Case Description
My application uses InAppBrowser to open app links to my app. One of the links is a YouTube link (for ex.
https://youtu.be/2Vv-BfVoq4g
). Once the link clicked, it opens the InAppBrowser and opens the youtube video. On that page, we have this "Open App"(see image below) button displayed and that's where the issue occurs.Here's a sample code of implementation
cordova.InAppBrowser.open('https://youtu.be/2Vv-BfVoq4g', '_blank', 'location=yes,hideurlbar=yes,fullscreen=yes');
Android and iOS has different behavior, please check the details below.
Android
Current Behavior
When clicked "Open App" button, it redirects to error page, similar to siranjeevimurugesan reported.(ex. error below)
Webpage not available The webpage at intent://m.youtube.com/watch?v=2Vv-BfVoq4g&feature=mweb_c3_open_app_11268432&itc_campaign=mweb_c3_open_app_11268432&redirect_app_store_ios=1&app=desktop#Intent;package=com.google.android.youtube;scheme=vnd.youtube;launchFlags=268435456;end could not be loaded because: net::ERR_UNKNOWN_URL_SCHEME
Evidence
Expected Output
When clicked "Open App", it should redirect to YouTube app and its actual video.
iOS
Evidence
Please don't mind the gray box at the screen as I have to hide some info
https://github.com/apache/cordova-plugin-inappbrowser/assets/53552332/6284018b-65b4-4155-bcda-a9fdf0a392c5
Expected Output
When clicked "Open App", it should redirect to YouTube app and its actual video.
Information
Command or Code
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: