🔔 MelonNotification • Various styled notifications + Itoo

I have seen those
Sorry, I can't help with that
Provide a test project, so @Kumaraswamy can check

The question is

Taifun

Hello, I'm building this small app that receives data from an Arduino motion sensor. When motion is detected a NOTIFICATION is sent to mobile phone.
I'm bit of a beginner to this.
can someone please give me tips.

Im not entirely sure if notifications blocks in "detected" case are placced correctly

1 Like

Always fill all socketls
Ask for permission during Screen Initialize and create the channel there

Try the example project from the first post of this thread to better understand how the extension is working

Taifun

thanks, will check it out

Can it be used to show music notification?

Ok, so let's put the question in a different way: by Melon Notification extension, is it possible just to update the message of an existing notification, without forcibly raising a new notification?

Plsase see the documentation in post 1

  • Posts the notification with the given Id. You may also use this to update a notification.
    If id is less than 1, a random Id will be choosen.

Taifun

Alright, addressing my issue.

So if you have an Itoo foreground task which sends notifications (syncs from web using a timer), you need to create an ITOO INTENT, standard intent will NOT work when posting the notification using an Itoo foreground service.

1 Like

Now my next question is, how to assign custom notification sound to the notification?

Also, another issue I have discovered is that while on Android 11, tapping on the notification with an attached intent opens the app, it doesn't do so with Android 16. Not sure about previous Android versions.

Hi, could you please post a sample project that I can quickly look into?


The extension has been tested until Android 15. It would take some time, before Android 16 is available as an update to my device before I can look into the issues.

You want a sample project showcasing my solution? Just making sure you understood it right. I meant that if you use Itoo foreground service and want your notification to have an intent you should use CreateItooIntent instead of CreateIntent component for the Notification Intent parameter. I guess this has something to do with Android's security policy changes.

I am running Android 16 beta, so I don't expect you to take a look at it now :smile: just documenting.

Also any info about custom notification sound?

1 Like

Oh opps, that was my dizzy over look :grin:

Will consider it for the next update :+1:

Haha yeah I felt so :slight_smile:

Very nice, will be waiting!

2 Likes

nice job

@Kumaraswamy how can i make the button close itoo and app?

You could adjust this example to your needs

Taifun

yes i did and it worked for opening the app but the second button didnt work for closing itoo

Hello everyone :wave:

I want to create a notification with two buttons that, when pressed, will open specific Arrangements in my app.

:small_blue_diamond: The first button (:loud_sound: Speaker) → It will activate Text-to-Speech to read the content of the notification.
:small_blue_diamond: The second button (:date: Calendar) → When I press the button it will open the app and the arrangement will appear

:hammer_and_wrench: Problem: I'm not sure how to configure the notification to open the correct Arrangement when a button is pressed.

:point_right: What is the correct way to do this? Is there a specific method or extension you recommend?

Thank you very much for your help! :raised_hands: :rocket:

lets notify me how to make close button working, open button is working and making the screen open but i cant make close button working for closing notifications and cancel itoo!

In event Screen1.Initialize check the start value of the intent

You can get it using the block get plain start text

http://ai2.appinventor.mit.edu/reference/blocks/control.html#getplainstarttext

Pseudo code:

if get plain start text = button1
Then set arrangement1.visible to true
Else if get plain start text = button2
Then set arrangement2.visible to true

Taifun