Closed moxspoy closed 3 years ago
Hey @moxspoy, this is a known issue. You can find more details on the issue here - https://github.com/crisp-im/crisp-sdk-android/issues/26.
I haven't got round to fixing it yet as I am waiting for the new native Android SDK to be released by the crisp team. This should be soon. Once its released this library will need a refactor in order to use the new SDK.
Please feel free to create a PR to fix this library using the approach outlined in https://github.com/crisp-im/crisp-sdk-android/issues/26.
@moxspoy I merged your forked repo however I am getting the following error when trying to build the project:
Where you able to fix this?
@walterholohan actually the forked repo is not updated, because i prefer to change code in my node_modules directly (for simplicity).
what i have done to make it work (fix error inflating) was only remove the tag name in
your errors comes because the class is not activity (but it is in CrispChatView that extend LinearLayout). we should call getFragmentManager from Activity.
I merged your changes. The app does not crash now because of duplicate fragments, however, if I close the Crisp window and reopen it again then it gets stuck on the loading screen. Do you get the same behaviour?
@walterholohan same with me. In my case, the app also didn't respond when we click back button.. this problem probably comes due to incorrect implementation of crisp webview in their SDK
That's a shame, Hopefully they release a new version of the Android SDK soon.
In the meantime, I have upgraded this library to use the latest version of crisp-ios-sdk. Can I get you to give this PR a review - https://github.com/walterholohan/react-native-crisp-chat-sdk/pull/6
Any update on this?
Sup? Any update on this?
I've just released a new version of this library that updates both iOS and Android SDK's. I am now using the beta version of Crisp's new android SDK so this will fix the above issue you are seeing. Let me know how you get on.
Closing issue as this is fixed in the latest version
Hallo! im getting trouble when trying to reopen the chat components.
when i open the app, then i click button navigate to component that contains
CrispChatUI
, working fine. Then i close/back from that page, and i open again that page, suddenly i get red box in my android (in iOS is working/no problem like this).Screen shoot
Here is my component code:
when i trying to remove setUserEmail and setUserNickname, the error is gone, but the screen stuck in loading.
Stack trace
Expected result
i could open the app anytime (navigate from other component). please help me.
Environment
React native 0.61.5 using latest react-native-crisp-chat-sdk