home-assistant / home-assistant/android

[FR] allow relative URL to /media file in clickAction (of notifications)

Open
#1,672 18 comments 15 reactions 0 assignees View on GitHub
enhancement notifications
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

On Android, is it possible to click through a notification, to display a media file located within the /media directory? This could already be supported, but I haven't been able to do so successfully.

With, for example:

```javascript
"image": "/media/local/amazon_order_2021-08-03_XXXX.jpg",
"clickAction": "/media/local/amazon_order_2021-08-03_XXXX.jpg"
```

The notification image displays fine, but a click leads to a 401: Unauth response (in the Companion app).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.