Popup Notification

I am working on an App that connects to an Arduino. If a sensor detects a object infront of it the Arduino sents some data to the app. Then the app should display a notification. The notification should look like the notification from e.g. Whatsapp or Gmail if you get a message. It should popup on the top of the screen for a few seconds and displays the message. I am now searching for days but i cant find any extension that can do that.

I hope somebody can help me.

Hello. I do not use WhatsApp so I do not know the notification style, can you show your relevant blocks along with a screenshot or something else that describes the notification style?
I am thinking of something like this:

WhatsApp - You got a message from <somebody>

(after a few seconds)

WhatsApp - Message Content


This the style i want.


Currently i am using MelonNotification. Arduino sents a "P" if an object is detected.

If I'm correct, you want a interactive notification which has buttons on it too like Gmail's notification.
If thats what you want, I can help you but it might not be a straight forward process though.

Well the screenshot was just an example that shows what style i want. I dont need buttons. Just an Icon and text. And if you click it it shows the main screen.

yes, this is the best choice
just read the complete thread to find several examples including examples which display buttons in the notification

Taifun

The extension is working fine. But the notification only shows on the status bar. I want that the notification pops up on the top of the screen too. As i mentiond above i dont need buttons

Use the CreateChannel block with importance set to 5 (max) when the screen Initializes.

1 Like

did you lock your device?
this should be shown as large notification on your lock screen

example taken from my alarmmanager extension

Taifun

no i did not lock my device

MelonNotification dont have this block

Did you check properly?

image

oh i am sorry, i found it

1 Like

i tried it and it worked for me. thank you all for your help

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.