{"action":"opened","issue":{"url":"https://api.github.com/repos/jpush/jpush-flutter-plugin/issues/8","repository_url":"https://api.github.com/repos/jpush/jpush-flutter-plugin","labels_url":"https://api.github.com/repos/jpush/jpush-flutter-plugin/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jpush/jpush-flutter-plugin/issues/8/comments","events_url":"https://api.github.com/repos/jpush/jpush-flutter-plugin/issues/8/events","html_url":"https://github.com/jpush/jpush-flutter-plugin/issues/8","id":393816601,"node_id":"MDU6SXNzdWUzOTM4MTY2MDE=","number":8,"title":"点击推送的时候，出现错误 Key platform expected String but value was a java.lang.Byte.  The default value <null> was returned.","user":{"login":"ArlenFuCN","id":22558617,"node_id":"MDQ6VXNlcjIyNTU4NjE3","avatar_url":"https://avatars3.githubusercontent.com/u/22558617?v=4","gravatar_id":"","url":"https://api.github.com/users/ArlenFuCN","html_url":"https://github.com/ArlenFuCN","followers_url":"https://api.github.com/users/ArlenFuCN/followers","following_url":"https://api.github.com/users/ArlenFuCN/following{/other_user}","gists_url":"https://api.github.com/users/ArlenFuCN/gists{/gist_id}","starred_url":"https://api.github.com/users/ArlenFuCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArlenFuCN/subscriptions","organizations_url":"https://api.github.com/users/ArlenFuCN/orgs","repos_url":"https://api.github.com/users/ArlenFuCN/repos","events_url":"https://api.github.com/users/ArlenFuCN/events{/privacy}","received_events_url":"https://api.github.com/users/ArlenFuCN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-24T06:06:34Z","updated_at":"2018-12-24T06:06:34Z","closed_at":null,"author_association":"NONE","body":"在main.dart中使用了极光推送\r\n在发送测试消息的时候，点击接收到的消息，会出现以下的exception：\r\nKey platform expected String but value was a java.lang.Byte.  The default value <null> was returned.\r\n```\r\nD/JIGUANG-JCore(10220): [PushReceiver] onReceive - cn.jpush.android.intent.NOTIFICATION_OPENED_PROXY.2d823e2a-c603-403f-b155-57b393e80f50\r\nD/JIGUANG-JPush(10220): [PushReceiverCore] onReceive - cn.jpush.android.intent.NOTIFICATION_OPENED_PROXY.2d823e2a-c603-403f-b155-57b393e80f50\r\nD/ViewRootImpl@725cd5f[MainActivity](10220): MSG_WINDOW_FOCUS_CHANGED 1\r\nD/JIGUANG-JPush(10220): [PushReceiverCore] Send broadcast to app: com.example.dfelectricapp action=cn.jpush.android.intent.NOTIFICATION_OPENED\r\nW/Bundle  (10220): Key platform expected String but value was a java.lang.Byte.  The default value <null> was returned.\r\nW/Bundle  (10220): Attempt to cast generated internal exception:\r\nW/Bundle  (10220): java.lang.ClassCastException: java.lang.Byte cannot be cast to java.lang.String\r\nW/Bundle  (10220): \tat android.os.BaseBundle.getString(BaseBundle.java:1089)\r\nW/Bundle  (10220): \tat android.content.Intent.getStringExtra(Intent.java:7706)\r\nW/Bundle  (10220): \tat com.jiguang.jpush.JPushPlugin$JPushReceiver.getNotificationExtras(JPushPlugin.java:300)\r\nW/Bundle  (10220): \tat com.jiguang.jpush.JPushPlugin$JPushReceiver.handlingNotificationOpen(JPushPlugin.java:275)\r\nW/Bundle  (10220): \tat com.jiguang.jpush.JPushPlugin$JPushReceiver.onReceive(JPushPlugin.java:262)\r\nW/Bundle  (10220): \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:3392)\r\nW/Bundle  (10220): \tat android.app.ActivityThread.-wrap18(Unknown Source:0)\r\nW/Bundle  (10220): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1780)\r\nW/Bundle  (10220): \tat android.os.Handler.dispatchMessage(Handler.java:105)\r\nW/Bundle  (10220): \tat android.os.Looper.loop(Looper.java:164)\r\nW/Bundle  (10220): \tat android.app.ActivityThread.main(ActivityThread.java:6944)\r\nW/Bundle  (10220): \tat java.lang.reflect.Method.invoke(Native Method)\r\nW/Bundle  (10220): \tat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)\r\nW/Bundle  (10220): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)\r\nD/JPushPlugin(10220): instance.dartIsReady is true\r\nI/flutter (10220): 极光推送点击回调 onOpenNotification: {alert: 的发射点发, extras: {app: com.example.dfelectricapp, cn.jpush.android.ALERT_TYPE: 7, cn.jpush.android.NOTIFICATION_ID: 189334024, cn.jpush.android.MSG_ID: 3377710911, cn.jpush.android.NOTIFICATION_TYPE: 0, cn.jpush.android.ALERT: 的发射点发, platform: null, cn.jpush.android.EXTRA: {}, sdktype: JPUSH}, title: df_electric_app}\r\nW/Activity(10220): AppLock checkAppLockState locked:false verifying:false pkgName = com.example.dfelectricapp isInMultiWindowMode:false showWhenLocked:false\r\nI/System.out(10220): (HTTPLog)-Static: isSBSettingEnabled false\r\nI/System.out(10220): (HTTPLog)-Static: isSBSettingEnabled false\r\nD/JIGUANG-JCore(10220): [HttpHelper] status code:200 retry left:2\r\n```\r\n虽然报这个异常，但是正常的接收消息回调和点击消息回调是正常的，请问下这个错误是什么原因以及如何修正。\r\n谢谢。\r\n版本是：0.0.8\r\nflutter doctor：\r\nDoctor summary (to see all details, run flutter doctor -v):\r\n[√] Flutter (Channel beta, v0.11.7, on Microsoft Windows [Version 10.0.17134.472], locale zh-CN)\r\n[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)\r\n[√] Android Studio (version 3.2)\r\n[√] Connected device (1 available)\r\n\r\n• No issues found!\r\n"}}
{"actor":{"display_login":"ArlenFuCN"}}