Android 12 crash: After adding notifee to react native project app crashing on android 12
See original GitHub issueHi, I am using the latest version of notifee react native but app is crashing on android 12. Here is crash detail:
Process: com.mobility_trader_gmbh.heycar.debug, PID: 11729
java.lang.IllegalArgumentException: com.mobility_trader_gmbh.heycar.debug: 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.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:273)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:151)
at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable(ForceStopRunnable.java:171)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:102)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
P.S. App is working fine on all android versions lower than android 12.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
My React Native App Crash After Update Target Sdk Version 31
The app crashes on Android 12 version devices. It works on android 10 or 11. My package.json file: { "name": "app", ...
Read more >Releases | Notifee
[Android]: Fixed an issue where trigger notifications created with v0.12.x and below would cause the app to crash when upgrading to v0.13.x. 0.13....
Read more >App Center Crashes for React Native - Microsoft Learn
The log is first written to the device's storage and when the user starts the app again, the crash report will be sent...
Read more >Fixing React-Native android release build - wesionaryTEAM
Android release build crashes on launch but works fine in development mode. After months of research and development, your app is finally ready...
Read more >Crashlytics - React Native Firebase
If you're using Expo, make sure to add the @react-native-firebase/crashlytics config plugin to your app.json or app.config.js . It handles the Android ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Indeed @alihussnain-git 😃, it was a lot more involved to fix it then I was thinking but crash bugs shall not stand 🐛 🔨
#263