Extension: Modified Notification Style to support Android 12 and above

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