Android SDK crashes in react native.
Hi,
I have integrated android sdk to my react native application using native modules. I can get the chat with us button and can open the zendesk support window, but on opening the keyboard it crashes with the error
kotlin.UninitializedPropertyAccessException: lateinit property coroutineScope has not been initialized
https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/android/getting_started/#add-the-sdk-dependencies.
Has anyone faced this issue and is there a workaround / sources to fix this error.
-
Our app is currently experiencing the same issue. Here is a log trace from our crashlytics:
```Fatal Exception: kotlin.d0: lateinit property coroutineScope has not been initialized
at zendesk.messaging.android.internal.conversationscreen.ConversationTypingEvents.sendTypingStartEvent(ConversationTypingEvents.kt:112)
at zendesk.messaging.android.internal.conversationscreen.ConversationTypingEvents.onTyping(ConversationTypingEvents.kt:83)
at zendesk.messaging.android.internal.conversationscreen.ConversationScreenCoordinator$onTyping$1.invoke(ConversationScreenCoordinator.kt:195)
at zendesk.messaging.android.internal.conversationscreen.ConversationScreenCoordinator$onTyping$1.invoke(ConversationScreenCoordinator.kt:194)
at zendesk.ui.android.conversation.composer.MessageComposerView$special$$inlined$doOnTextChanged$1.onTextChanged(TextView.kt:101)
at android.widget.TextView.sendOnTextChanged(TextView.java:11631)
at android.widget.TextView.handleTextChanged(TextView.java:11736)
at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:14931)
at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:1277)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:586)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:517)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:38)
at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:849)
at android.view.inputmethod.BaseInputConnection.setComposingText(BaseInputConnection.java:618)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:393)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:89)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
```
Vous devez vous connecter pour laisser un commentaire.
1 Commentaires