Closed yaroslav-v closed 1 year ago
Maybe my issue is connected to this. I have "empty chat screen" on 3.2.7+ on some devices (Samsung One (Android 13), Samsung A52 (Android 11), Xiaomi Redmi (Android 10)) but okay on OnePlus 6 (Android 11). I can write in text field and send any message but it goes nowhere and screen remains empty.
Maybe my issue is connected to this. I have "empty chat screen" on 3.2.7+ on Samsung devices. I can write in text field and send any message but it goes nowhere and screen remains empty.
Yep, that's exactly how it looks in my case too.
Hi! Thanks for reporting! That's weird. Can you please provide some more information about it? Does the error appear after upgrading from previous versions to the 3.3.0? Is this bug reproduced in the demo app?
The only scenario I see of this error is that you didn't initialize the SDK before you opened the chat. And it has absolutely nothing to do with the version of the SDK. I strongly recommend to initialize the SDK in the application Perhaps you know other scenarios. I would be glad if you inform me about them :)
The only scenario I see of this error is that you didn't initialize the SDK before you opened the chat. And it has absolutely nothing to do with the version of the SDK. I strongly recommend to initialize the SDK in the application Perhaps you know other scenarios. I would be glad if you inform me about them :)
Hi!
Well, as I wrote earlier, the previous version 3.2.6 works just fine. The only change I made is the version of HelpCrunch SDK. If I update it to 3.2.7, or any other version after this one, the issue occurs.
The initialization message stays the same in all cases and it clearly states that SDK is initialized:
HCLog I HelpCrunch initialization successful
I've spent some more time to locate the cause of the issue.
The problem is that HelpCrunch.isInitialized() returns incorrect status starting from v3.2.7. I use this method to check the initialization status of SDK and do or skip initialization according to the return.
As stated in its description "Returns current initializations state / @return true if initialize method was called, false otherwise". However, starting from v3.2.7 it returns positive even if HelpCrunch.initialize() wasn't called from the app itself.
An interesting clarification. If the state problem is indeed confirmed, then we will fix it in the next release. Thanks about this :+1:
In any case, I do not recommend doing a custom check for initialization. This check is already inside this method :sweat_smile:
Fixed a long time ago. Forgot to close
Hi!
The latest versions 3.2.7, 3.2.8 and 3.3.0 have an issue with showChatScreen(). After the call to HelpCrunch.showChatScreen() it fails with an error IllegalStateException: Application id not found.
The previous version 3.2.6 works just fine, after I change it to 3.2.7, or any other version after this one, the issue occurs. The initialization status message stays the same in all cases.
Here is the full log:
Environment: a default Android emulator API 33 with Google Play