Talk SDK leads to crash on Android 12 | Community
Skip to main content

Talk SDK leads to crash on Android 12

  • August 30, 2022
  • 16 replies
  • 0 views

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.
        

16 replies

Eric27
  • September 1, 2022
Hi Omar,

Can you please see if you can replicate your issue using our sample application?
 
Thanks!

  • Author
  • September 1, 2022

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.


  • Author
  • September 5, 2022

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.

 

https://we.tl/t-Q0QQh8XaUo

 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.


Eric27
  • September 7, 2022
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.

  • Author
  • September 7, 2022

Thank you Eric. 

Waiting for your reply.


Eric27
  • September 15, 2022
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.

  • Author
  • September 21, 2022

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


  • Author
  • October 18, 2022

Hello Again Eric,

I hope you are doing well.

Any update on this?

Thank you.


Eric27
  • October 24, 2022
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!

  • Author
  • November 16, 2022

Hey Eric,

Any updates on the issue?

 

Thanks!

 


Mick11
  • November 21, 2022

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!


  • Author
  • November 24, 2022

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:

1- https://support.zendesk.com/hc/en-us/community/posts/5114822029850-Issue-with-navigation-bar-title-on-iOS

 

2- https://support.zendesk.com/hc/en-us/community/posts/4903848429338-Zendesk-Support-navigation-bar-color-on-Dark-Mode

 

I appreciate your contribution.

 

Thank you.

 

 


Eric27
  • November 28, 2022
Hey Omar,

No worries, I've went ahead and replied to your colleague. 

Thanks

  • Author
  • December 7, 2022

Hi Again Eric,

Thank you for the reply.

Any Updates on the issue?

Thanks


Eric27
  • December 15, 2022
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. 

  • Author
  • December 15, 2022

Hi Eric,

yes, the talk sdk issue.

No worries, I will be waiting for their reply here.

Thank you.