Ionic v5 Push Notification crash Android 13

Hello,

I got the development of an old mobile application under Ionic 5 with angular 10.

I seem to have a problem with push notifications only on certain phones.

Here is the return in the console play developper.

EDIT: Here the error

java.lang.IllegalArgumentException: com.lchawkins.booktable: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

Any idea why i have this ?

Thanks :slight_smile:

The plugin you are using for push notifications probably needs to be updated in order to support Android SDK 31+. More info is needed. Are you using Cordova or Capacitor and what push notification plugin? What versions of each? You can run ionic info to get some of that info.

Hi, Thanks but problem solved just now by upgrading to capacitor 4 :smiley:

1 Like

you will need to update to capacitor 5 soon because if stores requirements :smiley:
never ending story ahah