vfsfitvnm / ViMusic

An Android application for streaming music from YouTube Music.
GNU General Public License v3.0
8.14k stars 682 forks source link

How to enable youtube links to open with vimusic ? #1190

Open garravi27 opened 9 months ago

garravi27 commented 9 months ago

Steps to reproduce the bug

So I recently discovered that if I go to the app info of this app we have option to enable youtube links to open with this app but I am unable to do that. Please help with that.

Expected behavior

Let me add the YouTube links

Actual behavior

Unable to add YouTube links

Screenshots/Screen recordings

Screenshot_20230915-110446 Screenshot_20230915-110451

Logs

No response

ViMusic version

0.5.4

Android version

Android 13

Additional information

No response

Syntax-Err5 commented 9 months ago

You have to open the settings page for default links for the YouTube Music app and unselect "music.youtube.com" first. Go back to ViMusic and the option should be available.

If you want ViMusic to open YouTube links too (I wouldn't) you can do the same for the YouTube app.

davidpkj commented 9 months ago

Note that this will probably not work on Android 12 (API 31) and up, since Android will require the website (in this case "youtube") to approve the app ("vimusic") to handle such a request (to open the link in the app). Since the app is not official, this is basically impossible.

Source: https://developer.android.com/training/app-links/deep-linking

faustaahmad commented 8 months ago

I didnt have that options (Android 11) to select links for default apps, Instead I choose Always ask when links are supported for most of my apps (even media player that usually default in stock video player or gallery)