Comments (4)
PlatformException(error, Unsupported value: {"atext":"娃安徽啊啊","content_text":"[自定义消息]"}, null)
from jmessage-flutter-plugin.
类似上面,那种
from jmessage-flutter-plugin.
我也遇到了,jmessage_flutter: "^0.0.15"版本,
安卓工程实际引入的是
'cn.jiguang.sdk:jmessage:2.8.2'
'cn.jiguang.sdk:jcore:1.2.7'
发送自定义消息后,
W/JIGUANG-JMessage(27585): [CommonUtils] error occurred in users callback, msg = Unsupported value: {"extras":"{"name":"买了佛冷"}"}
W/System.err(27585): java.lang.IllegalArgumentException: Unsupported value: {"extras":"{"name":"买了佛冷"}"}
W/System.err(27585): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:289)
W/System.err(27585): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:286)
W/System.err(27585): at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:57)
W/System.err(27585): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:204)
W/System.err(27585): at com.jiguang.jmessageflutter.JMessageUtils.handleResult(JMessageUtils.java:51)
W/System.err(27585): at com.jiguang.jmessageflutter.JMessageUtils$1.gotResult(JMessageUtils.java:170)
W/System.err(27585): at cn.jpush.im.api.BasicCallback.gotResult(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b.c(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b.b(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b$2.call(Unknown Source:8)
W/System.err(27585): at cn.jmessage.a.a.e$2.run(Unknown Source:4)
W/System.err(27585): at android.os.Handler.handleCallback(Handler.java:873)
W/System.err(27585): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(27585): at android.os.Looper.loop(Looper.java:214)
W/System.err(27585): at android.app.ActivityThread.main(ActivityThread.java:6981)
W/System.err(27585): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(27585): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
W/System.err(27585): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
from jmessage-flutter-plugin.
@huangminlinux @fendouai @javenfang
上述问题定位于插件的安卓lib工程内的JsonUtils.java文件297行,
result.put("customObject", toJson(customObject));
其中 toJson(customObject)报错
from jmessage-flutter-plugin.
Related Issues (20)
- 修改群组信息接口异常,应该是插件代码错了
- Add Desktop and Web support
- 多次hot restart导致程序无响应 HOT 4
- jmessage_flutter: 0.6.3,更新群组信息方法 updateGroupInfo 没用
- 集成之后iOS端报错framework not found AppTrackingTransparency
- androidx下getConversations和getHistoryMessages都为空数组了
- Conversation的lastMessage的text永远都是'Text Message Test!' HOT 1
- 支持 flutter 2.0
- 支持 flutter 2.0
- 拒绝好友 申请 居然没人发现调用错了接口吗? HOT 1
- 删除消息,撤回消息接口调完之后,再去调用获取历史消息,仍然可以获取到 HOT 3
- 未适配flutter2.0的null safe HOT 2
- 请问接了这个jmessage还需要接jpush么?
- add 'tools:replace="android:exported"' to <receiver> element at AndroidManifest.xml:120:9-139:20 to override.
- getAllUnreadCount始终返回0 HOT 1
- flutter2.5.3 - 安卓端真机运行报错 HOT 1
- 发送语音消息异常
- Github项目描述信息错误
- fatal error: too many errors emitted, stopping now [-ferror-limit=] HOT 1
- flutter 3.3.3上运行pod install之后,xcode编译报错 HOT 5
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 jmessage-flutter-plugin.