Talk SDK leads to crash on Android 12
Hey There,
I am using Talk SDK (1.1.0) in my android project as your documentation states:
maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
in the build.gradle file (Project)
and
implementation 'zendesk.talk:talk-android:1.1.0'
in the build.gradle (Module).
I am initializing everything in the onCreate if the Application Class.
, but when I call the method
startCallSetupFlow
an Exception occurs:
java.lang.RuntimeException: Unable to start service zendesk.talk.android.internal.call.service.TalkCallService@30e9b65 with Intent { cmp=zendesk.talk.android.internal.call.service.TalkCallService (has extras) }: java.lang.IllegalArgumentException: 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.
-
Commentaire officiel
Hi Omar,
I'm a Product Manager in Zendesk. Apologies for the delay in taking action on this issue. We're going to focus on a fix for this and release a new version of the SDK. I can't share an exactly timeline just yet, but looking at the info in this post, the work is light enough. I'll update this post when we have an idea on the timeline. Thank you for your patience!
-
-
Hi Eric,
Thank you for your reply.
I could not replicate the issue using your sample app. It works just fine on it, but I still don't get why it is not on mine. I am doing the same what the sample app does.
-
Hello Again,
I managed to know the issue, and why it is working on the sample app, but not on mine.
As of Android 12, we have to provide FLAG_IMMUTABLE or FLAG_MUTABLE to PendingIntent, which is not being done by the Talk SDK 1.1.0.
The sample app has the targetSdkVersion and compiledSdkVersion = 30, Android 11. So, it is not even targeting android 12 features. However, my app targets 32, so it crashes.
Below, I am attaching a video of the sample app crashing when I increase the compiled and target SDK versions to 32.
java.lang.RuntimeException: Unable to start service zendesk.talk.android.internal.call.service.TalkCallService@839d3cf with Intent { cmp=com.zendesk.talk.sample/zendesk.talk.android.internal.call.service.TalkCallService (has extras) }: java.lang.IllegalArgumentException: com.zendesk.talk.sample: 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 ...I hope to hear good news from you ASAP.
Thank you.
-
Hey Omar,
Thanks for the additional information. I'll be meeting with the mobile dev team tomorrow to dig into this. As soon as I have any feedback / info - I'll let you know.
-
Thank you Eric.
Waiting for your reply.
-
Hey Omar,
The mobile dev team has spun up a card for this issue and are still digging into a fix for it. As soon as I have some more concrete information I'll update this thread.
Thanks for your continued patience.
-
Hey Eric.
Thank you for your response.
I am wondering if we can expedite this . Our app is on the store, and people need to reach out to our support team. It's to our understanding that the fix can be as simple as (As of Android 12, we have to provide FLAG_IMMUTABLE or FLAG_MUTABLE to PendingIntent, which is not being done by the Talk SDK 1.1.0.), hope this helps.
Thank you again
-
Hello Again Eric,
I hope you are doing well.
Any update on this?
Thank you.
-
Hey Omar,
I've just reached out to the mobile team to try and get an update on this. As soon as I get a response, I'll let you know.
Thanks!
-
Hey Eric,
Any updates on the issue?
Thanks!
-
Hey Mick and Eric,
I want to thank you for the response. I am waiting for your reply.
In the mean time, my colleague in the team has opened 2 issues for IOS, but unfortunately, she was not able to hear from you back.
I was wondering if you can help her out. These are the links for her tickets:
I appreciate your contribution.
Thank you.
-
Hey Omar,
No worries, I've went ahead and replied to your colleague.
Thanks
-
Hi Again Eric,
Thank you for the reply.
Any Updates on the issue?
Thanks
-
Hey Omar,
What are you looking for an update on? The talk sdk issue? If so, Mick and the team will continue working on this and once the new sdk version is getting close to release, they'll communicate it here. Unfortunately we can't provide an eta at the moment.
-
Hi Eric,
yes, the talk sdk issue.
No worries, I will be waiting for their reply here.
Thank you.
Vous devez vous connecter pour laisser un commentaire.
16 Commentaires