forked from phonegap/phonegap-plugin-push
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 31 and above requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE #256
Comments
I ran into the same under Android. All is good under iOS. I spent a few hours googling it. Nothing works thus far. Below is what I have:
Error message:
|
Version @dev4.0.0 version has that handled. I needed to update package.json firebase version to 13+ |
Is the latest firebase version 10.6.0? Can you post your package.json?
…On Sat, Nov 25, 2023 at 07:15 mkdevel ***@***.***> wrote:
Version @dev4.0.0 version has that handled. I needed to update
package.json firebase version to 13+
—
Reply to this email directly, view it on GitHub
<#256 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOLXZDVTQFSSRMUCYZOUYDYGHOOXAVCNFSM6AAAAAA7XXBQWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGI4TINRQGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Removing and adding the plugin to Cordova did the trick. All is working. Please close the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
I think there is bug with PendingIntent, because i do not receive background notifications.
Or am I missing some parameter while sending push notification?
Logs taken while reproducing problem
FATAL EXCEPTION: Firebase-FCMService
Process: com.myapp.myapp, PID: 32530
java.lang.IllegalArgumentException: com.myapp.myapp: 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:408)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:491)
at android.app.PendingIntent.getActivity(PendingIntent.java:477)
at android.app.PendingIntent.getActivity(PendingIntent.java:441)
at com.google.firebase.messaging.zzb.zzf(Unknown Source:68)
at com.google.firebase.messaging.zzc.zzas(Unknown Source:34)
at com.google.firebase.messaging.FirebaseMessagingService.zzd(Unknown Source:59)
at com.google.firebase.iid.zzf.run(Unknown Source:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered: