Comments (11)
hey @baptistejamin this is blocking a fairly major move we want to transition all our apps to Crisp. Is there any incentive we can offer to have this fixed this week?
from crisp-sdk-android.
I just discovered that the issue happens even when I don't set the token id.
After closing and opening a chat few time I see the same crash mentioned before.
And after restarting our app the sdk crashes on Crisp.configure(...)
call.
E/MethodChannel#com.ventrata/intercom(28671): Failed to handle method call
E/MethodChannel#com.ventrata/intercom(28671): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.gson.JsonPrimitive.getAsString()' on a null object reference
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.d.e.k.a(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.d.e.k.deserialize(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
E/MethodChannel#com.ventrata/intercom(28671): at com.google.gson.Gson.fromJson(Gson.java:927)
E/MethodChannel#com.ventrata/intercom(28671): at com.google.gson.Gson.fromJson(Gson.java:892)
E/MethodChannel#com.ventrata/intercom(28671): at com.google.gson.Gson.fromJson(Gson.java:841)
E/MethodChannel#com.ventrata/intercom(28671): at com.google.gson.Gson.fromJson(Gson.java:813)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.b.b.readObject(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1006)
E/MethodChannel#com.ventrata/intercom(28671): at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894)
E/MethodChannel#com.ventrata/intercom(28671): at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1799)
E/MethodChannel#com.ventrata/intercom(28671): at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
E/MethodChannel#com.ventrata/intercom(28671): at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.a.a.e(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.a.a.k(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.a.a.j(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.a.a.<init>(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.b.a.a.a(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.Crisp.resetChatSession(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at im.crisp.client.Crisp.configure(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): at com.ventrata.intercom.plugin.IntercomPluginMethodHandler.setup(IntercomPlugin.kt:85)
E/MethodChannel#com.ventrata/intercom(28671): at com.ventrata.intercom.plugin.IntercomPluginMethodHandler.onMethodCall(IntercomPlugin.kt:62)
E/MethodChannel#com.ventrata/intercom(28671): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#com.ventrata/intercom(28671): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#com.ventrata/intercom(28671): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#com.ventrata/intercom(28671): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#com.ventrata/intercom(28671): at android.os.Looper.loop(Looper.java:136)
E/MethodChannel#com.ventrata/intercom(28671): at android.app.ActivityThread.main(ActivityThread.java:6077)
E/MethodChannel#com.ventrata/intercom(28671): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/MethodChannel#com.ventrata/intercom(28671): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
from crisp-sdk-android.
hi, any update on this?
from crisp-sdk-android.
It happens only when using the Token_ID?
from crisp-sdk-android.
no, I also tried it without the token id
from crisp-sdk-android.
I only set these
Crisp.setUserNickname(user.name)
Crisp.setUserEmail(user.email)
if (user.phone != null) {
Crisp.setUserPhone(user.phone)
}
if (user.company != null) {
Crisp.setUserCompany(Company(user.company, null, null, null, null))
}
(our user name and email is always non-null)
And when I open chat, write a single message and then close chat and repeat this 3-times I get that crash when opening the chat for the 4rd time.
After that I get a crash everytime I start app and run Crisp.configure(context, config.key)
(I don't even get to opening the chat)
from crisp-sdk-android.
Facing the same issue currently.
from crisp-sdk-android.
We just released a new version (1.0.3), it should fix the issue. Could you please give it a try and confirm?
from crisp-sdk-android.
yes, 1.0.3 is working
Thanks :)
from crisp-sdk-android.
Great news! Closing the issue then :)
from crisp-sdk-android.
Hi guys i still get this issue (in 1.0.3) after i send/attach an image in chat. can you help to solve this problem ? please
@baptistejamin
from crisp-sdk-android.
Related Issues (20)
- Helpdesk public APIs - Open search & View article HOT 1
- im.crisp.client.internal.t.e.a java.util.UnknownFormatConversionException - Conversion = '秒'
- CrispSDK.searchHelpdesk() not implemented HOT 2
- Duplicate Class Found HOT 5
- Make SDK resilient against manufacturers implementing memory cleaning
- java.lang.IllegalArgumentException message with fingerprint not found
- Cannot resume chat activity whenever user minimize then click launcher icon HOT 3
- Incorrect user name HOT 6
- App crash when launch ChatActivity on some phones HOT 8
- **Build error** HOT 3
- Unable to prefil message to chatbox HOT 5
- Exception in runtime HOT 3
- Sending device identifiers HOT 3
- Start ChatActivity crash HOT 1
- Display messages sent `from` `user` from REST API HOT 5
- `carousel` message type support HOT 1
- How to get session callback like iOS SDK HOT 1
- Api 34, (statusBarColor white), and (windowLightStatusBar false) by default... HOT 2
- Message received notification? HOT 1
- java.lang.IllegalArgumentException HOT 8
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 crisp-sdk-android.