Extension: Modified Notification Style to support Android 12 and above

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.

If target sdk is android 14 .. the app crashes

Show us the relevant parts from your logcat output

Taifun

please provide the result as textfile and NOT as screenshot

it also might help, if you could provide a test project as small as possible, which elicits this error and add it into this thread, so someone can tak a look

Taifun

demoo.aia (2.0 MB)
sorry i couldn't run logcat on pc
when i run the app as it is no crash happen
the crash happen when i change target sdk to 34 in manifest by apktool in mobile and install it again
my phone is samsung A04s android 14
extentions itoo , notification style

In this case please build on the sdk 34 test server and test the apk file from there

Taifun

1 Like

The issue is that you will have to define broadcast receiver type while registering it, if you target API 34.
Context.RECEIVER_NOT_EXPORTED
Context.RECEIVER_EXPORTED

For example:

if (Build.VERSION.SDK_INT >= 34) {
     activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"), Context.RECEIVER_NOT_EXPORTED);
 } else {
     activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
}
3 Likes

Will post an update in sometime.

1 Like

Hey I'm working on an alarm manager extension, I'm having trouble with including a customizable smallicon, by turning media into a bitmap. Any tips?

Check MediaUtil class.

i believe i got it now. Now i've got another issue, the icon is simply white, even tho i created the icon using android asset studio.

so currently, the notification extension is not working.
i have confirmed it by looking at the log, which autogenerated by my phone's system. Also trying to remove the extension from my build. And indeed it was the problem.
the error i meant was the app is force closing.
below are the logs (sorry for the screenshot, i can't copy the text.)




thankfully i still have previous build working.
now i have several question

  1. why is the previous build works?
  2. what is sdk and did AppInventor upgrade the sdk to 34?
  3. why it broke the extension?
  4. i have contacted the developer of this extension by leaving a reply on the post, is it enough?
  5. while waiting the developer to update the extension, what can i do?
    thank you for the answer

Because of

As the extension is open source and it looks like you are in a hurry, don't hesitate to provide a bug fix yourself for the community here

Taifun

1 Like

com.jdl.NotificationStyle.aix (32.5 KB)

Hello all, please test this updated extension and let me know the results.

Itoo+NotificationStyle Test: SimpleItooProject2.aia (116.9 KB)

2 Likes

Works well :+1: HyperOS Android 13

2 Likes