πŸ”” MelonNotification β€’ Various styled notifications + Itoo

Device Samsung a15, version 14

Does the example app ask for post notification permission?

Taifun

I tested the aia example

I will check the permission

Edit: i check the permission and i found in the example aia the block of ask for permission not added, so i add it and it is work fine for me, but they not work on companion :frowning: it is crached

Yes, because the companion app does not offer post notification permission in the manifest

Taifun

1 Like

I would be very glad if you would add the tag support, would be really nice to manage the individual notifications without having to create a separate channel, or at least be able to assign a string identifier to the channel.

This is the Channel creation block, executed via the Itoo foreground service:

This is a simple notification, works without issues, is generated via the foreground service as well:
image

This is a notification with an action button, it doesn't show up, is generated via the foreground service as well:

I should also tell you that I tried using the intent parameter directly, without the action button, didn't work as well, I tried directly linking the CreateIntent block, link the CreateIntent block to a procedure, and link the procedure to the intent parameter or the action button, didn't work either.

If I just use the simple build block, without the intent, works properly.

how to create count down notification work in background using melon notification

read this?

I have tried that method, has not worked.

What have you tried?
Start with a working example in the foreground, then follow the usage tips of itoo Open Source β€’ Background Tasks: Itoo πŸš€ and try to get it running in the background and if you got stuck, post a screenshot of your relevant blocks

Usage

  • Before you try to do something with Itoo, first get it working normally.
  • Do not use global variables, or try to access/set them.
  • Do not use user interface components such as Label, TextBox or even Notifier since there is no interface in background.
  • You cannot use Tiny DB, alternatively you are supposed to make use of the similar storage features Store/Fetch property blocks offered by this extension.
  • For the main background procedure, you need to include an argument "x".
  • You cannot use normal Event blocks in background, use RegisterEvent block to listen to component events.
  • You cannot run more than one foreground or background service.
  • A component does not get created until you touch any of its block.

Taifun

1 Like

this is my tried, it is not worked

Yes, because you are using a global variable

Use StoreProperty/FetchProperty methods instead
Also set the timer interval before registering the Timer event

Taifun

1 Like

It working but time not updated :slightly_frowning_face:

Can you post the blocks of your

EDIT: you also might wamt to look into this example

which updates the permanent notification regularly

Taifun

1 Like

Why are you using global variables? Variable global timer is not initialized in the background... It can be null or cause a crash.

Hey, any idea regarding the blocks I sent?

Hi, could you please post your .aia file so I can check later? Also before running it in background, does it run properly without it?

Sorry, cannot post the aia file as it contains sensitive information. Building a simple notification works, let me highlight that the notifications are called by Itoo via the foreground service. However if I try to add an action button or set the intent for the notification, the notification simply doesn't come up.

Also to note, I have tested on Android 16 beta and Android 15 stable release devices (Pixel 7).

Create a test project and provide a screenshot of your relevant blocks

Taifun

I have provided a screenshot of the blocks used earlier. Maybe you haven't seen it?

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

The question is

Taifun