[FREE] Notification Style: extension with various types of notification

1. Introduction

Extension name: Notification Style
The Notification Style extension carries many built-in notification features like BigText, LargeIcon, BigPicture, SmallIcon, MediaStyle, MessageStyle. That way, you won't be so limited in talking to the user.

Latest Version: 1.3
Released: 2020-06-06T04:35:00Z
Last Updated: 2020-07-04T19:24:00Z

2. Designer Properties

image

3. Blocks

component_event (12)
component_event (13)
component_event (14)
component_method (47)
component_method (49)
component_method (48)
component_method (50)
component_method (51)
component_method (52)
component_method (53)
component_method (54)
component_method (55)
component_method (56)
component_method (57)
component_method (58)
component_method (59)
component_method (60)
blocks (66)
component_set_get (11)
blocks (68)
component_set_get (13)
blocks (67)
component_set_get (12)
blocks (69)
component_set_get (14)
blocks (70)
component_set_get (15)

4. Documentation

Events

  • Callback Button Action
    When clicking on any action button, the name of the respective button will be returned by that block.
    component_event (12)
    nameAction: Button name
  • Callback Message
    Return of the message typed in the notification.
    component_event (13)
    message: Message typed in the notification bar.
    timestamp Timestamp of the moment the user returned the message.
  • Callback Music Player
    When clicking on any button of the media style notification, the name of the Action is returned in this block.
    component_event (14)

nameAction:

  • Favorite
  • Unfavorite
  • Previous
  • Play
  • Pause
  • Next

Methods

  • Simple Notifications
    Creates a simple notification with title and subtitle, capable of displaying large texts in the subtitle.
    component_method (47)
    title ~ text
    subtitle ~ text
    bigText ~ boolean*
    startValue ~ text
    id ~ number
  • Create Large Icon notifications
    Displays a large icon in the notification with title and subtitle.
    component_method (49)
    title ~ text
    subtitle ~ text
    bigText ~ boolean*
    largeIcon ~ text**
    startValue ~ text
    id ~ number
  • Big Picture Notification
    Creates a notification with a big picture and in addition it is possible to add title, subtitle and large icon.
    component_method (48)
    title ~ text
    subtitle ~ text
    bigPicture ~ text**
    largeIcon ~ text**
    startValue ~ text
    id ~ number
  • Create action button notifications
    With this block it is possible to create up to three action buttons in the notification and in addition, it is possible to add as a "hyperlink".
    component_method (50)
    title ~ text
    subtitle ~ text
    bigText ~ boolean*
    bigPicture ~ text**
    largeIcon ~ text**
    listButtons ~ list (Add a list with the names of the action buttons, for example: "button 1". If you choose a hyperlink, that is, when clicking on the button you will be redirected to a page, just put the name of the button, pipe and the corresponding link, for example: "Creator of Kodular|https://c.kodular.io". It is worth mentioning that, when clicking on the action button, his name will be returned in "nameAction" in the "CallbackButtonAction" event.)
    startValue ~ text
    id ~ number
  • Receiver Message Notification
    Through this block, you can show a notification of a received message with the ability to reply in the bar itself.
    component_method (51)
    group ~ text
    message ~ text
    sender ~ text (If you enter an empty string, it will add a message received from the sender.)
    timestamp ~ number
  • Confirm Sending Message
    If the user responds to the message in the notification, it will show a loading icon until that block is used.
    component_method (52)
  • Clear All Message
    When calling the MessageReceiverNotification method, it stores the added messages and to remove, use this method.
    component_method (53)
  • Create Setup Music Notification
    Starts the MediaStyle notification variables.
    component_method (54)
    title ~ text
    subtitle ~ text
    largeIcon ~ text**
    favorite ~ boolean
  • Play Music Notification
    Displays notification of MediaStyle with pause button.
    component_method (55)
  • Pause Music Notification
    Displays notification of MediaStyle with pause button.
    component_method (56)
  • Get Favorite
    Gets whether the song is marked as a favorite.
    component_method (57)
    Return: true or false (boolean)
  • Cancel Music Notification
    Delete MediaStyle notification.
    component_method (58)
  • Cancel Notification
    Cancels a specific message.
    component_method (59)
    id ~ number
  • Cancel All Notification
    Cancels all notifications.
    component_method (60)

*Type true if you want to display large text in your caption.
**Image path is allowed to use images of assets, storage, cloud.

Properties

  • Channel Name
    Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel.
    blocks (66)
    component_set_get (11)
    Default: ChannelA
  • Importance Channel
    Define the importance of the channel check here for more information.
    blocks (68)
    component_set_get (13)
    Default: 2
  • IMPORTANCE_MIN ➜ 0
  • IMPORTANCE_LOW ➜ 1
  • IMPORTANCE_DEFAULT ➜ 2 (default)
  • IMPORTANCE_HIGH ➜ 3
  • IMPORTANCE_MAX ➜ 2
  • Priority Notification
    Set notification priority, check here for more information
    blocks (67)
    component_set_get (12)
    Default: 2
  • PRIORITY_MIN ➜ 0
  • PRIORITY_LOW ➜ 1
  • PRIORITY_DEFAULT ➜ 2 (default)
  • PRIORITY_HIGH ➜ 3
  • PRIORITY_MAX ➜ 2
  • Icon Notification
    Sets the notification's smallicon.
    blocks (69)
    component_set_get (14)
    Use only small images of assets.
    Default:
  • Color Notification
    Adjust the notification color
    blocks (70)
    component_set_get (15)
    Default: BLACK

5. Screenshots

- - - - - -

6. Downloads

7. Open Source

8. Credits

Thank you very much App Inventor, for being part of my life :heart:

Note: At the moment, the extension works only for versions greater than or equal to those of Android Marshmallow (23), in the future I can update to cover more versions.

20 Likes

Impressive .

2 Likes

I liked it. I also wanted a extension like this one. Thank you....

I have an issue with the message notification. When I reply in the notification, it adds the reply to the notification twice. I specificaly avoid adding replies sent from the notification to it, because that makes it show up 3 times.
Edit: Ahhhh now it is even worse. It is showing up many more times.

Here is an aia. Any help would be much appriciated. Chat.aia (72.2 KB)

Unfortunately, .PlayMusicNotification no longer works on Android 11.
This also applies to @Ken's MediaStyleNotification.

Are there any alternatives to this?

1 Like

This is great , but how do you change the title "MIT A12 Companion now"

Perfect extension :grin::+1:
this is exactly what I was looking for

Yes, here is a new extension for that, thanks @Shreyash:

3 Likes

Hey there, May I ask if this extension will run in background?
Thank you :wink:

Your post seems like you are shouting, kindly edit your post and remove Caps

1 Like

sorry because I was in a hurry :sweat_smile: I will correct it right away!

Do You mean that in the list we should put a equals block?

@Jarlissonlira2 has not been on the community for some time...

Suggest you look at the example aia project provided. That may answer your question.

Ok Thanks @TIMAI2

Hi everyone,
I was wondering is it possible to set a date and time at which the notification will be sent? For example I want the users to be able to set a reminder for a certain date and time.
I would be grateful for any help.
By the way, brilliant extension!
Thank you so much,
Superdojo

this extension is not able to do that...
but there is another:

Taifun

1 Like