-
Notifications
You must be signed in to change notification settings - Fork 5
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
Android Targeting S+ requires one of FLAG_IMMUTABLE or FLAG_MUTABLE specified when creating PendingIntent #2
Comments
Hi, looks like you are using Firebase's built-in capability to show the notification? Looks like they've fixed the issue: firebase/firebase-android-sdk#3115 => update fcm dependency in your project (But i would rather recommend to write your own code showing notifications) |
Correct, I want to use Firebase's built-in capability to show the notifications when the app is in background or closed (I am not planning to send data notifications). Therefore I added your I did not add the I noticed that you internally use Thanks for your help! |
That's what I meant with "update fcm dependency in your project" :-) You did not set it yourself so your project uses the version I used to compile this lib. You can use a newer one by adding it to your project yourself. |
Okay, unfortunately I had no success with the dependency update. After I added
a new issue comes up that leads to an app crash on startup:
As it looks to me, this is caused by the fact that Firebase InstanceId is deprecated / not available anymore in more recent sdk versions. It was replaced by Firebase Installations. https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId So after all, I think that a Migration to the current messages api is the only way to come around this issue.. https://firebase.google.com/docs/projects/manage-installations#fid-iid |
Yes, looks like it. |
I am not quite sure how to do the implementation / testing properly. Do you have an advice how I have to put the cloned local repo in my app (where I have a testing environment) 😬 i would be very thankful for some hints 😅 |
Give a new version number and perform the step to compile to local maven repo. Then use this new version number in your project. |
Seems like gradle wrapper configuration does not go along with the uploadArchives task..
|
Which project sdk should be used for the gradle jvm? How do I have to configure the project to archive from source? |
GHA uses the same command and it works. :) |
Feel free to update SDK, Gradle etc when needed. |
Got it!
The above exception occurs when gradle does not use jdk 8 / a compatible jdk version Solution:show current used jdk version show all installed java versions
(install jdk 8 via idea or 'by hand' if by hand if not present) start gradle task with java home directory option pointing to working jdk version
|
App crashes after fcm background notification was received.
Exception:
platform: Android (API 31)
gdxVersion = '1.10.0'
pushMsgsVersion = '1.0.0'
Thank you very much for providing this library 🤘
The text was updated successfully, but these errors were encountered: