Flutter App targeting Android 12 CRASHES => FLAG_IMMUTABLE or FLAG_MUTABLE to be specified when creating a PendingIntent
901
It worked for me simply by adding implementation 'androidx.work:work-runtime-ktx:2.7.0'
in the dependencies
section of your android/app/build.gradle
It's the proposed solution of this issue: https://github.com/flutter/flutter/issues/93609
Author by
ArrowMan
Updated on January 02, 2023Comments
-
ArrowMan over 1 year
I develop App in Flutter. Would anyone suggest me where exactly I should change PendingIntent to use FLAG_IMMUTABLE? App installs on simulator but crashes at launching. Would anyone give a short example where to change it?
I read that workmanager 2.7.1 can help to solve the problem. Where exactly should it be added?