Pesquisas recentes


Sem pesquisas recentes

Android 12 crash



Publicado 02 de dez. de 2021

Hello support team,

We have recently migrated to Android 12 and started getting crashes pointing to your library.
The exact dependency we are using is

zendesk.messaging:messaging-android:1.2.0

Crash stacktrace is as follows:

Fatal Exception: java.lang.IllegalArgumentException: com.fibermode.mode.android: 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.buildServicePendingIntent(PendingIntent.java:724)
at android.app.PendingIntent.getService(PendingIntent.java:686)
at zendesk.messaging.android.push.internal.NotificationBuilder.setOpenNotificationIntent(NotificationBuilder.java:20)
at zendesk.messaging.android.push.internal.NotificationProcessor.display(NotificationProcessor.java:20)
at zendesk.messaging.android.push.internal.NotificationProcessor$display$1.invokeSuspend(NotificationProcessor.java:16)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:2)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:86)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:5)

Looks like there is missing PendingIntent flag in NotificationBuilder class?
Have you migrated your library towards Android 12 yet ? 
If not when we can expect to get it fixed?
We are getting constant crashes at the moment.

Thanks in advance.

Rafal Wesolowski


0

3

3 comentários

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Rafal! At this time, we are not currently supporting Android 12. The engineering team is targeting an EOY release and if you'd like to track this issue further, you can take a look at this issue in the public Android repo.

0


image avatar

Mick O'Donnell

Zendesk Product Manager

Hi Rafael,

Thanks for your post. For this specific case, I've created a support ticket (you should have received an email). When you have a moment, please take a look, there's a request for some specific pieces of information in that could assist this investigation.

Many thanks!

0


Hi Rafal Wesolowski

We've recently released the new version 2.1.0 for the Zendesk SDK, which contains the fix of the version 2.0.0 for Android 12. This should resolve your issue.

Thanks again for reporting that to us!

0


Por favor, entrar para comentar.

Não encontrou o que estava procurando?

Nova publicação