-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck on loading #26
Comments
Hi there. I'm having the same problem. @cecq did you find any workaround? |
We decided to not integrate crispy in our android app and use just messenger. |
@hrossi Did you find a workaround for this ? Thanks :) |
Sadly, I didn't find any solution :( |
Hi @hrossi, just found a fix that works for me (I hope it helps ;) ) : My first thoughts were that the webview was just not well deleted. So I tried to ensure the deletion of the fragment (and its webview). I run into several issues including So I managed to create my own fragment that will contain the @EFragment(R.layout.my_useful_crisp_fragment)
public class MyUsefulCrispFragment extends Fragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initCrispSDK();
}
public void initCrispSDK() {
//initialize Crisp-SDK
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
FragmentManager fragmentManager = getActivity().getFragmentManager();
CrispFragment fragment = (CrispFragment) fragmentManager.findFragmentByTag("crispFragment");
if (fragment == null) {
fragment = new CrispFragment();
FragmentTransaction ft = fragmentManager.beginTransaction();
ft.add(R.id.crispFragmentContainer, fragment, "crispFragment");
ft.commit();
fragmentManager.executePendingTransactions();
} else {
Logs.debug(this, "Creating new CrispFragment");
}
}
@Override
public void onDestroyView() {
super.onDestroyView();
if (getFragmentManager() != null) {
FragmentManager fragmentManager = getActivity().getFragmentManager();
CrispFragment fragment = (CrispFragment) fragmentManager.findFragmentByTag("crispFragment");
if (fragment != null) {
fragmentManager.beginTransaction().remove(fragment).commit();
}
}
}
} (layouts/my_useful_crisp_fragment) <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/crispFragmentContainer"
android:orientation="horizontal">
</FrameLayout>
|
Hey @mathieudebrito do you think it would be possible to use this approach in my React Native library(https://github.com/walterholohan/react-native-crisp-chat-sdk) for this SDK. At the moment I just inflate the Fragment into a linear layout view (https://github.com/walterholohan/react-native-crisp-chat-sdk/blob/master/android/src/main/java/com/reactnativecrispchatsdk/CrispChatView.java) but if I render the screen for a second time I get the |
This bug have been on for a year. Why is the crisp team so uninterested in resolving this. we had to abandon crisp for this singular reason. Every other works perfectly for us. Its so annoying. They rarely respond to email or are they out of business? Great product. zero customer service |
@walterholohan No idea :( The main thing to ensure is to delete everything and recreate everything between 2 display of the CrispFragment |
We are working on a brand new version of the Crisp SDK. It's currently in development and should be released in the coming weeks. I do agree this current release is obviously unperfect. The next version will be fully native |
Thank you @baptistejamin ! Is there an ETA for the new version ? Could you also and in the meanwhile accept merge requests ? |
Great stuff @baptistejamin. I look forward to the new version. Once it's released I will integrate it into the react-native wrapper. |
Thanks for the reply @mathieudebrito. I will give it a go and let you know how I get on. |
Did anyone find a solution for that fragment issue? |
@baptistejamin Thanks! Do you have an ETA on the release? Re: your comment on May 22 |
You can expect a beta in 2 weeks
…Sent from my iPhone
On 2 Jul 2020, at 19:50, kendallshain ***@***.***> wrote:
@baptistejamin Thanks! Do you have an ETA on the release? Re: your comment on May 22
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello @baptistejamin, is beta version already released? |
It's been well over a year since this has been opened. I'm also getting infinite loading. Is there ANY estimate on when the native version cause the current version is barely useable. or at least something to fix this infinite loading thing |
I'm not 100% sure of what I will tell you, but I still hope it will help : |
@baptistejamin any update on when you are going to release the new version of the android SDK? |
Hello there. We published the early beta of the Crisp Android native SDK. You can find it here: https://github.com/crisp-im/crisp-sdk-android/tree/beta |
Hey @eliottvincent. Thank you. I am now using the new beta version in https://github.com/walterholohan/react-native-crisp-chat-sdk and it works great. When do you expect to release a stable version? And will the stable version include the API methods just like the iOS sdk does? |
Awesome! |
Hello, I tried to setup Crisp (v0.1.14) as documented, but the first time it loads the webview everything goes smooth while all the subsequent times it get stuck on loading:
Logcat reports just this warning:
Let me know if you need any additional logs or info to solve the issue.
Thanks
The text was updated successfully, but these errors were encountered: