Commit 9451e002 authored by 李增强's avatar 李增强

m

parent 46d70639
...@@ -47,9 +47,11 @@ class FlutterJpushVip { ...@@ -47,9 +47,11 @@ class FlutterJpushVip {
_channel.setMethodCallHandler((call) { _channel.setMethodCallHandler((call) {
if (call.method == '__JPUSH_MESSAGE__') { if (call.method == '__JPUSH_MESSAGE__') {
try { try {
Map map = call.arguments; Map map ;
if (call.arguments.runtimeType.toString().contains('String')) { if (call.arguments.runtimeType.toString().contains('String')) {
map = json.decode(call.arguments); map = json.decode(call.arguments);
}else{
map = call.arguments;
} }
var n = _Notification.from(map); var n = _Notification.from(map);
callback(n); callback(n);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment