Comments (7)
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.
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.
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.
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.
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.
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.
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)
- With Android P on Pixel 2 and Pixel 3, Dimelo initialization fails and the app crahes HOT 3
- Incident étrange HOT 1
- Unread show
- How to display the time when the notification was received HOT 11
- Hello, I want to know how to customize the notification display. HOT 1
- Crash caused by a conflict with the Picasso lib HOT 5
- dimelo.setWelcomeMessage() could not receive a welcome message HOT 4
- IndexOutOfBoundsException from ChatActivity HOT 6
- Crash when clicking on camera HOT 6
- React Native Wrapper HOT 2
- Localization HOT 7
- Last release breaks build of previous versions HOT 1
- Push Notification icon HOT 1
- compileSdkVersion 31 build fail HOT 1
- Deprecated API HOT 1
- Could not send the message HOT 4
- Crash HOT 13
- Chat$24.run
- Close button not working in camera page HOT 9
- NullPointerException StartAndValidateAttachmentProvider Bitmap.isRecycled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engage-digital-messaging-android.