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.
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.0for 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.