-
Notifications
You must be signed in to change notification settings - Fork 39
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
Gander and Android 12 (SDK 31) Compatibility #40
Comments
When will the new version of Android 12 be released |
It appears we need to either wait for gander to be updated, or make another fork to fix the PendingIntent issue for API31 and above. |
Hi folks, I'm planning to rewrite gander, with support to multiple platforms. Given no expected timelines for it.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Greetings,
We have been using Gander very happily for the passed few months, but have come across a problem.
When updating our App to target sdk 31 (Android 12), we get the following error message:
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.
Which appears to be occurring inside the Gander library, specifically:
at com.ashokvarma.gander.internal.support.NotificationHelper.show(NotificationHelper.java:81)
.setContentIntent(PendingIntent.getActivity(mContext, 0, Gander.getLaunchIntent(mContext), 0))
<-We are currently using
com.ashokvarma.android:gander-imdb:3.1.0
for our project.Is there an update to allow gander to work for android 12/SDK31 targeting projects? Or something that can be enabled which would do so?
Thanking you in advance.
The text was updated successfully, but these errors were encountered: