New notification blocks in OH4.3 (Problem)

Blockly on OH 4.3 release

I just started my Blockly adventure. While testing relevant blocks to replace my Rules DSL step by step, I couldn’t get most of the new notifications block features (e.g. Icon, Tag) working as it was described in the blog.
(“sendNotification” is working with Rules DSL)

Clients:
iPhone 13 mini
iPad 7th Gen

The following script:

… resulted in the following notification:

Are the new “extensions” not working on iOS clients?
Is there any other config needed to get this working?

First of all I have to apologize that the blocks aren’t documented yet. I only noticed a few days ago that I forgot ( I was kind of sure I had done it …).

Regarding iOS I actually tested the Blocks on iOS as well. Can you explain what the problem is? Is it every notification not working or only the custom headers? I don’t understand what issue is you are trying to show with the notification screenshot.

What version of openHAB iOS App?
If it is still V1, those new notification options are not showing up.

iPhone 13 mini: iOS 18.1.1
iPad 7th Gen: iOS 18.1.1

It is V2 I’m using.

Notification setting in iOS for openHAB App:

Not sure, but is there any config that can possible be changed in openHAB cloud to make this work?

We are so grateful that you and all other maintainers are providing such a great openHAB environment. :pray:
No need at all to apologize for anything :wink:

As per config, I’d expect the notification would show Icon, Tag, Media URL and On-Click Action.
However, only Header Title and Message are shown.

2 Likes

Marcus, I found where I “documented” the blocks - even though it is still not in the official docs, this might help you and others in the meantime:

Icon is only supported by Android, tag is not shown on iOS (not sure how exactly tag is used on Android) but can still be used to hide notifications.
Media URL and On-Click Action should work however.
Can you please share the full media URL?

Link

Thank you!

When you do the official docs, it would be very helpful to have a table showing compatibility of each functionality with iOS vs. Android.

This is no valid media URL. You need to link to the image file that should be shown, not to the webpage showing the image.

It is a URL to a .png file. What’s wrong with that?

Are Action Buttons supposed to work on iOS?
I can’t get that working either…

It is no URL to a PNG file, it’s a URL to a Wikipedia page showing that image:

You need the link to the actual image:

Success!

Media URL is working now!
Thanks a lot for explaination!

Block config as follows:

On-click Action and Action Buttons are working as well. It needs a “tap hold” on the notification to make all of it visible. Seems I missed that quite important piece of information :upside_down_face:

3 Likes