Skip to content
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

Folder / Sub-folder links into the media-browser are not working using navigate URL Handler #4989

Open
lutzvahl opened this issue Jan 17, 2025 · 4 comments
Labels
bug Something isn't working webview

Comments

@lutzvahl
Copy link

Home Assistant Android app version(s):
2025.1.2-full

Android version(s):
Android 15

Device model(s):
Pixel 9

Home Assistant version:
Core
2025.1.2
Supervisor
2024.12.3
Operating System
14.1
Frontend
20250109.0

Last working Home Assistant release (if known):
N/a

Description of problem, include YAML if issue is related to notifications:

Folder / Sub-folder links into the media-browser are not working.
E.g. in the browser {externalURL}/media-browser/browser/app%2Cmedia-source%3A%2F%2Funifiprotect will open the Media Sources -> Unifi Protect Folder.
Using this URL as a clickAction in a Notification will open the Browser.

Using homeassistant://navigate as suggested in the wiki full URL homeassistant://navigate/media-browser/browser/app%2Cmedia-source%3A%2F%2Funifiprotect is showing an error
Invalid media source URI

Companion App Logs:
Can't see anything related in the logs. Please advise in case needed

Screenshot or video of problem:

Image

@lutzvahl lutzvahl added the bug Something isn't working label Jan 17, 2025
@jpelgrom
Copy link
Member

Looks like the app opens this as {external}/media-browser/browser/app,media-source://unifiprotect?external_auth=1 (viewed using Chrome remote debugging), so I guess Android and/or the app are decoding too much.

@lutzvahl
Copy link
Author

Did you try to double encode the URL?

@jpelgrom
Copy link
Member

No, I'm following your example?

@lutzvahl
Copy link
Author

No, I'm following your example?

No worries!
I've tried using a double encoded URI: homeassistant://navigate/media-browser%2Fbrowser%2Fapp%252Cmedia-source%253A%252F%252Funifiprotect
but same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working webview
Projects
None yet
Development

No branches or pull requests

3 participants