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

Action Notifications mediaAttachmentUrl not fully working #3771

Closed
uk59823 opened this issue Jul 19, 2024 · 0 comments · Fixed by #3775
Closed

Action Notifications mediaAttachmentUrl not fully working #3771

uk59823 opened this issue Jul 19, 2024 · 0 comments · Fixed by #3775
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@uk59823
Copy link

uk59823 commented Jul 19, 2024

Actual behaviour

https://community.openhab.org/t/oh4-2-0-notifications-with-android-app-media-attachements/157291
https://community.openhab.org/t/oh4-2-0-notifications-with-android-app-actions/157204/23

Using the mediaAttachmentUrl parameter with a fully qualified URL the attachment is part of the notification, visible, but not with an image item with the format item:MyImageItem.

Using:

actions.notificationBuilder("Bewegung am Briefkasten")
    .withIcon("letterbox")
    .withTitle("Briefkasten")
    .withMediaAttachmentUrl(items["SnapShotUri_Arenti_IN1_1"].state.toString())
    .addUserId(abc@def.de)
    .send();

The image described with the SnapShortUri (http://....) is shown

Using:

actions.notificationBuilder("Bewegung am Briefkasten")
    .withIcon("letterbox")
    .withTitle("Briefkasten")
    .withMediaAttachmentUrl("item:SnapShot_Arenti_IN1_1")
    .addUserId(abc@def.de)
    .send();

The image is not shown.

Expected behaviour

Both Uri and ImageItem should show the picture

Environment data

Client

  • Android version: 14
  • Device model: Xiaomi 13T Pro
  • App version: 3.15.4
  • Build flavor: Play Store
  • Device language: German

Server

  • Server version: 4.2.0

openHAB Cloud

  • Self hosted cloud or myopenhab.org: myopenhab.org
@uk59823 uk59823 added the bug Indicates an unexpected problem or unintended behavior label Jul 19, 2024
mueller-ma added a commit to mueller-ma/openhab.android that referenced this issue Jul 20, 2024
Closes openhab#3771

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant