-
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
Inifite loop #13
Comments
Are you sure to have the latest release ?
… On 2 Jan 2018, at 23:20, Marcel Cunha ***@***.***> wrote:
Every second and later time I try to open the activity containing the CrispFragment, there is an infinite loop - the first load works perfectly, showing all messages and so on.
Tried with the example and the problem occurred as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Using |
Do you have any output in your logs? |
Not really. Do you have some tag to filter the logs? 01-03 08:51:24.318 18024 18024 I art : at android.view.View im.crisp.sdk.ui.CrispFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle) (SourceFile:59) |
Did you initiate properly the SDK? Can I can a copy of your initialisation script?
What is your android version?
--
Baptiste Jamin
CEO, Crisp <https://crisp.im/> - Connect your customers to your team.
On 3 Jan 2018, at 11:52, Marcel Cunha <notifications@github.com> wrote:
Not really. Do you have some tag to filter the logs?
Filtering by crisp there is the following log for the first time only - nothing appears after the first:
01-03 08:51:24.318 18024 18024 I art : at android.view.View im.crisp.sdk.ui.CrispFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle) (SourceFile:59)
01-03 08:51:24.318 18024 18024 I art : at android.view.View im.crisp.sdk.ui.CrispFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle) (SourceFile:59)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA04w4uL_lhgOr7bEgFJzTQMrM8t-DSdks5tG1vjgaJpZM4RRJTS>.
|
Yes, I think I did (the very first time I open the activity, everything works fine, the chat is loaded and so on - the problem just happens in the second and so on attempt). public class BaseApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Crisp.initialize(this);
Crisp.getInstance().setWebsiteId(BuildConfig.CRISP_KEY);
} And the Activity .xml layout: <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<fragment
android:name="im.crisp.sdk.ui.CrispFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:tag="crisp_fragment"/>
</RelativeLayout> |
What is the android version?
--
Baptiste Jamin
CEO, Crisp <https://crisp.im/> - Connect your customers to your team.
On 3 Jan 2018, at 12:15, Marcel Cunha <notifications@github.com> wrote:
Yes, I think I did (the very first time I open the activity, everything works fine, the chat is loaded and so on - the problem just happens in the second and so on attempt).
public class BaseApplication extends Application {
@OverRide
public void onCreate() {
super.onCreate();
Crisp.initialize(this);
Crisp.getInstance().setWebsiteId(BuildConfig.CRISP_KEY);
}
And the Activity .xml layout:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<fragment
android:name="im.crisp.sdk.ui.CrispFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:tag="crisp_fragment"/>
</RelativeLayout>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA04w_12uArlZEJ7OeTvmPRsNOgUyhceks5tG2FEgaJpZM4RRJTS>.
|
Android 7.1.1 |
@mywaystar not sure why yet (maybe flushing the queue wrongly for the second time?), but removing the static modifier from the isLoaded (and related methods) on CrispFragment solved the problem. |
Could you chat with us on crisp.chat , I have very specific questions |
Hi, started the chat but no responses. |
It has been fixed. Thank you for your help! |
Every second and later time I try to open the activity containing the CrispFragment, there is an infinite loop - the first load works perfectly, showing all messages and so on.
Tried with the example and the problem occurred as well.
The text was updated successfully, but these errors were encountered: