Extension: Modified Notification Style to support Android 12 and above

testNotif_default.aia (222.6 KB)

Yeah, even just this basic demo app has the issue. You can't check the "allow reply" checkbox in this demo because you'll get an error. This demo is using the official extension, which doesn't allow that function. I also compiled my own with rush that simply changes FLAG_IMMUTABLE to FLAG_MUTABLE and that allows the reply function. That's not what's in this demo though because I didn't want that to be blamed for the main issue here. Using either my compiled extension or the official extension like what's in this demo, causes extreme difficulty with unlocking the screen if there's a notification when the screen is off.

The discussion of the Notification Style extension includes the configurable Properties of Importance and Priority.

  • 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

For both, the Default value listed is "2". However the "more information" link leads me to the conclusion that "Default" is another constant in both cases.

Default importance seems to be "3"

Default notification importance: shows everywhere, makes noise, but does not visually intrude.

Constant Value: 3 (0x00000003)

And Default Priority seems to be "0"

Default notification priority. If your application does not prioritize its own notifications, use this value for all notifications.

Constant Value: 0 (0x00000000)

What am I missing? Are the default values for Priority and Importance both "2" or are they "0" and "3" respectively?

Kind regards,
Randal

Hi, ich habe die Extension(siehe titel) benutzt in einer App. Die schickt leider keine App Benachritigungen. Weiß jemand woran es liegen könnte?

Du darfst keines der Puzzlestücke leer lassen...

Ausserdem würde ich ein button click event verwenden...

Taifun

1 Like

Was muss denn bei bigText, StartValue und id hin? Diese Textfelder können da nämlich nicht hin.

Das findest du wie üblich in der Dokumentation


Taifun

1 Like

Es funktioniert. Danke!

This modified extension also gives error on Android 13 kindly help me with that

1 Like

Which error? Post screenshot...

I tried it and it works fine on my device.
As for the music notification to play an audio file, what should I do?
And how can notification be useful in an existing application and why is it useful in an application?

1 Like

Post the aia.

NotificatioStyle.aia (60.2 KB)
It only works with music notification.

Confirmed. I also get this error on Android 13+

@Kumaraswamy

1 Like

Thank you, will fix it whenever I get some time.

2 Likes

Hello all, recently I've not been able to actively contribute towards this platform, since this extension is open source, I invite experienced people to help fix this issue. You can fork this repository, do some fixes, and post the update here, and possibly make a PR also.

thank you

1 Like

Can you try this one?

PS: Authorized by @Kumaraswamy to post it here

Replace FLAG_IMMUTABLE with FLAG_MUTABLE for all Pending Intents.

1 Like

V2

  • Fixed crashes, replaced PendingIntent flags to MUTABLE by @Know_About_IT

com.jdl.NotificationStyle.aix (32.2 KB)

4 Likes

Hi the Extension works great!
However on Google Play I get this notification. I have added ItoO too so maybe it cloud came from that.

Your app sets up exact alarms without checking whether the SCHEDULE_EXACT_ALARM permission has been granted. This causes your app to crash for users with Android 14, as the permission is no longer granted by default.