Plantage Android 12, pixel 6
Plantage sur android 12 (pixel 6)
cf.
"STACK_TRACE": "java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.ffessm.doris.android/fr.ffessm.doris.android.activities.Accueil_CustomViewActivity}: java.lang.IllegalArgumentException: fr.ffessm.doris.android: 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.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.IllegalArgumentException: fr.ffessm.doris.android: 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458)
at android.app.PendingIntent.getActivity(PendingIntent.java:444)
at android.app.PendingIntent.getActivity(PendingIntent.java:408)
at fr.ffessm.doris.android.async.NotificationHelper.createNotification(NotificationHelper.java:115)
at fr.ffessm.doris.android.async.VerifieMAJFiches_BgActivity.onPreExecute(VerifieMAJFiches_BgActivity.java:131)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:724)
at android.os.AsyncTask.execute(AsyncTask.java:671)
at fr.ffessm.doris.android.activities.Accueil_CustomViewActivity.onCreate(Accueil_CustomViewActivity.java:234)
at android.app.Activity.performCreate(Activity.java:8050)
at android.app.Activity.performCreate(Activity.java:8030)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
Apparemment lors de la mise à jour des fiches.
NOTE: on devrait de toute façon retirer cette fonction de mise à jour qui est trop sensible aux évolutions du site web sans garantir que les fiches soient vraiment meilleures et alourdi l'app ?