jmessage-flutter-plugin icon indicating copy to clipboard operation
jmessage-flutter-plugin copied to clipboard

JMessage's Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。

Results 59 jmessage-flutter-plugin issues
Sort by recently updated
recently updated
newest added
trafficstars

PlatformException(871201, Get response timeout,please try again later., )

android里的updateMyAvatar 一直保错七牛云失败什么的,反正头像上传永远不成功

机型 一加7pro , 安卓9,测试了 wifi 4g,都无法连接上,日志显示连接超时:: I/flutter (22672): jmessage 开始初始化 W/JIGUANG-JMessage(22672): [JMessageClient] this receiver is already registed ! receiver = com.jiguang.jmessageflutter.JmessageFlutterPlugin@d01493b D/JIGUANG-JMessage(22672): [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:2820...

目前的很多接口(注册,登录,更改密码)的返回值是Future。在上层没法做状态展示。 应该统一封装一个返回结果的类。 ```dart class JMResult { T result; int status; String description; } ``` 然后修改方法的返回值: ```dart Future login({ @required String username, @required String password, }) async {} Future getMyInfo() async...

1. 在`JmessageFlutter().createMessage`中,[经度](https://github.com/jpush/jmessage-flutter-plugin/blob/62dc21e283736478ece3450c25574a8c65dce2b8/lib/jmessage_flutter.dart#L399)与[纬度](https://github.com/jpush/jmessage-flutter-plugin/blob/62dc21e283736478ece3450c25574a8c65dce2b8/lib/jmessage_flutter.dart#L400)都是`int`类型,但是在[Android](https://github.com/jpush/jmessage-flutter-plugin/blob/62dc21e283736478ece3450c25574a8c65dce2b8/android/src/main/java/com/jiguang/jmessageflutter/JmessageFlutterPlugin.java#L745)中却是`double`类型,很明显在flutter中两者也应该都是`double`类型 2. `LocationMessage`的解析问题: JMMessage的Android SDK中,使用Android Studio可以看到`latitude`,`longitude`,`scale`作为 `LocationContent`的属性,在Java中的类型都是`Number`,导致flutter中获取位置消息时会出现如下报错: ``` E/MethodChannel#jmessage_flutter( 3242): java.lang.IllegalArgumentException: Unsupported Number type: class cn.jmessage.support.google.gson.internal.LazilyParsedNumber E/MethodChannel#jmessage_flutter( 3242): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:241) E/MethodChannel#jmessage_flutter( 3242): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:286) E/MethodChannel#jmessage_flutter( 3242): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:278) E/MethodChannel#jmessage_flutter(...

`- (void)login:(FlutterMethodCall*)call result:(FlutterResult)result { NSDictionary *user = call.arguments; [JMSGUser loginWithUsername:user[@"username"] password:user[@"password"] completionHandler:^(id resultObject, NSError *error) { if (error) { result([error flutterError]); return; } JMSGUser *myInfo = [JMSGUser myInfo]; // 为了和...

iOS端发送文件,在历史消息中获取不到文件

图片文件有自动下载并获取到本地路径 , 语音文件没有 , 只有一个 filename , 通过 filename . serveMessageId 与 消息id , 均不能 down 语音文件 , 报错can't not find this message.