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

m

parent 46d70639
......@@ -47,9 +47,11 @@ class FlutterJpushVip {
_channel.setMethodCallHandler((call) {
if (call.method == '__JPUSH_MESSAGE__') {
try {
Map map = call.arguments;
Map map ;
if (call.arguments.runtimeType.toString().contains('String')) {
map = json.decode(call.arguments);
}else{
map = call.arguments;
}
var n = _Notification.from(map);
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