Device awareness


It does not give any errors in compaion, but when you print it, the application crashes with this error.
Also, when I get the output that there is no problem in the emulator, but when I try it on Android 12 and Android 15 devices, I get an error.

Which extension are you using?


I will remove the notification style plugin. When the app is in the background, the notification at the top cannot update itself. Is there any problem with other plugins?

In Android 15 (API 34), FLAG_MUTABLE and FLAG_IMMUTABLE continue to be required when creating PendingIntents, just like in Android 12 (API 31). However, if a developer forgets to set either flag, the app will crash with an exception:

IllegalArgumentException: Flag must be specified: FLAG_IMMUTABLE or FLAG_MUTABLE

How can I set these?
thank you

Extension developer has to do this.

Yes, that extension is outdated
Use MelonNotifcation instead

Taifun

1 Like

thank you I will try :folded_hands:

here is how to update a message without generating a bait message

Sorry, I do not understand what you are talking about
Taifun


I want the app to continue at the top and send a notification when it is finished.

This thread is about the runtime error FLAG_IMMUTABLE… did you find out meanwhile, which extension was causing that error?

Please elaborate

Use MelonNotifcation

Taifun

The extensions which uses Android classes which uses pending intent will be affected by this flag in Android 15, I guess.

In this case, it seems to be notification style extension.

Most likely it is the notification extension but I will try it installs the Android 15 apk but it stays on the white screen

I need help with this, I think when using it with the itoo extension, instead of constantly updating a notification, it sends the updated data as a new notification

Use the same id
Btw. what about providing a screenshot of your relevant blocks?

Taifun

When I removed these three plugins, the application opened on Android 15, but I had to delete the plugin completely.
The error persists as long as the plugin exists in AIA.
I think the NotificationStyle plugin was the source of this problem. I didn’t try removing all of them one by one, but when I removed three of them, the problem was solved. It could also be the MathParser plugin.

I will provide the blocks
I can constantly update a notification in the melonnotification plugin’s own AIA file, but this is not possible in my own application. I am trying the same code blocks to test it, but it does not work.

As I already mentioned, notification extensions requires intent which is the cause of this error. You may use alternative to it as Taifun said, use MelonNotification.

For other extension, if you are sure these are also the cuase then replace them with alternatives. For circular progress bar you can use Progresso extension.

For math extension, i dont think it has any issues. Still you may try other alternatives if available.

MelonNotification It works but it doesn’t work in my own project. Is it because of other plugins?
MelonNotification I checked its AIA and uploaded the extensions there, now it there too doesn’t work.

Use logcat to find out what’s going on

Taifun

1 Like
03-27 01:50:05.818 20857 21037 E Launcher: notifyBackGestureStatus:run usingFsGesture=true   show=true   focus=false   pause=true
03-27 01:50:06.235  1293  4324 E ANDR-PERF-LM: VmRssMeter:: start() 447: Could not find pid, can not collect vmrss data
03-27 01:50:06.236  1293  4325 E ANDR-PERF-LM: VmRssMeter:: start() 447: Could not find pid, can not collect vmrss data
03-27 01:50:06.236  1293  4325 E ANDR-PERF-LM: AdaptiveLaunch: writeToDataBase() 64: Meter aborted or could not get meter data for this run
03-27 01:50:09.127  1643  1703 E NotificationService: Package enqueue rate is 5.3324976. Shedding 0|io.kodular.mehmetsolmaz1334.internetlimitim|1|null|10365. package=io.kodular.mehmetsolmaz1334.internetlimitim

could this be?
video of the error:

Normally it still needs to return a random number there, it just stops and stays there for a moment
I managed to run it in the test aia file, but it does not work in my application. Later, when I load the plugins into the test AIA file, it does not work in the test AIA file anymore.

this bloks: