Git Product home page Git Product logo

Comments (7)

jarthod avatar jarthod commented on September 7, 2024

Hello,

This error "Unknown API key", if random, probably means that the chat wasn't properly initialized a thus tried to query the server without an API key. You need to make sure the SDK is initialized with the proper API key whenever the app resumes from a notification (see https://github.com/dimelo/Dimelo-Android#push-notifications)

As it's random, how frequently do you have this problem? do you have steps to reproduce it? or at least stats in which the problem seems to be more frequent to you?

from engage-digital-messaging-android.

Jjourde avatar Jjourde commented on September 7, 2024

Hello,

Thank you for your answer.
The SDK is correcty initialized because I receive notifications. But in few cases, the new notification unload history.
I can't get you a frequency or steps to reproduce it, because it's very random :).

Thanks.

from engage-digital-messaging-android.

jarthod avatar jarthod commented on September 7, 2024

Ok thanks, yes I guess the chat is properly initialized when you start the app, but I was thinking more about what happen when the app is closed and the notification tapped, because it's not necessarily the same code path and it's frequent for users to miss this case.

The fact that it unloads history is coherent with the error you showed earlier, if there's no API key the chat won't be able to load the history and will display a blank screen. Can you confirm that if you kill the app and tap the notification, it works most of the time?

from engage-digital-messaging-android.

Jjourde avatar Jjourde commented on September 7, 2024

Thanks,
But I can't reproduce bug systematically, so I can't confirm you if I kill app, notifications works fine.

from engage-digital-messaging-android.

jarthod avatar jarthod commented on September 7, 2024

Yes sure, I just wanted you to confirm that if you kill the app it works "most of the time", because if it works at least some times it probably means you're setting the API key properly in this code path.

from engage-digital-messaging-android.

Jjourde avatar Jjourde commented on September 7, 2024

Yes, if I killed the application and if I receive a new notification, it works "most of time".
I think the API key is set properly, because I can receive some notifications without problem.

from engage-digital-messaging-android.

jarthod avatar jarthod commented on September 7, 2024

As seen with @DrissTM, the 404 was caused by a call to setUserIdentifier after setJwt, which actually clears the JWT (to avoid any conflict). We added a note to the readme about that: 198ba87

from engage-digital-messaging-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.