Recent searches


No recent searches

Android call fail issue - Voice call



Posted Mar 02, 2022

Hi Team, we have enabled a call option in our application through zendesk however, even before we could make a call through we are receiving call failed issue. We tired to even delay the call by 2 sec yet its not working - I am attaching the build details need your help and support on the same asap. 

 

implementation("zendesk.talk:talk-android:1.1.0")


private fun checkCallAvailability() {

Chat.INSTANCE.clearCache()

// isClick=true
//myApplication.talk = Talk.create(Zendesk.INSTANCE)
//Chat.INSTANCE.init(baseActivity, Vars.ZEN_DESK_ACCOUNT_KEY, Vars.ZEN_DESK_APP_ID)
val job = lineStatus(myApplication.talk!!, Vars.ZEN_DESK_DIGITAL_LINE_NICK_NAME)
job.addListener(null, object : TalkJavaCompatListener<LineStatusResult>, Executor {
override fun onSuccess(@NonNull result: LineStatusResult) {
Chat.INSTANCE.clearCache()
if (result is LineStatusResult.Success) {
val success: LineStatusResult.Success = result
// Chat.INSTANCE.clearCache()
isClick=true
if (success.agentAvailable) {
myApplication.talk!!.startCallSetupFlow(
context = baseActivity,
digitalLine = Vars.ZEN_DESK_DIGITAL_LINE_NICK_NAME,
successIntent = null
)
logRequest("6")
} else {
baseActivity.showToast("Agent is Not Available ")
}
} else if (result is LineStatusResult.Failure) {
baseActivity.showToast("Zendesk Not Available at the moment.")
} else {
baseActivity.showToast("Zendesk Not Available at the moment.")
}
}
override fun onError(@NonNull throwable: Throwable) {
throwable.printStackTrace()
Log.e("test_received11", "received")
}

override fun execute(p0: Runnable?) {
Log.e("test_received22", "received")
}
})
}

1

2

2 comments

Team,  

 

May we please have an update on this 

0


image avatar

Will Poon

Zendesk Product Manager

Thanks for reaching out Amrutha, I've created a ticket on your behalf and requested some further details from you there. 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post