mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 22:55:02 +08:00
update localnotification event field
This commit is contained in:
parent
f50a8ea5c7
commit
4585a13d7b
@ -143,10 +143,11 @@ NSDictionary *_launchOptions;
|
|||||||
userInfo = [NSMutableDictionary dictionaryWithDictionary:notification.request.content.userInfo];
|
userInfo = [NSMutableDictionary dictionaryWithDictionary:notification.request.content.userInfo];
|
||||||
} else {
|
} else {
|
||||||
UNNotificationContent *content = notification.request.content;
|
UNNotificationContent *content = notification.request.content;
|
||||||
userInfo = @{@"content": content.body,
|
userInfo = [NSMutableDictionary dictionaryWithDictionary:@{@"content": content.body,
|
||||||
@"badge": content.badge,
|
@"badge": content.badge,
|
||||||
@"extras": content.userInfo
|
@"extras": content.userInfo
|
||||||
};
|
}];
|
||||||
|
userInfo[@"identifier"] = notification.request.identifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_ReceiveNotification jsString:[userInfo toJsonString]];
|
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_ReceiveNotification jsString:[userInfo toJsonString]];
|
||||||
@ -165,6 +166,7 @@ NSDictionary *_launchOptions;
|
|||||||
@"badge": content.badge,
|
@"badge": content.badge,
|
||||||
@"extras": content.userInfo
|
@"extras": content.userInfo
|
||||||
}];
|
}];
|
||||||
|
userInfo[@"identifier"] = notification.request.identifier;
|
||||||
}
|
}
|
||||||
userInfo[@"actionIdentifier"] = response.actionIdentifier;
|
userInfo[@"actionIdentifier"] = response.actionIdentifier;
|
||||||
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_OpenNotification jsString:[userInfo toJsonString]];
|
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_OpenNotification jsString:[userInfo toJsonString]];
|
||||||
|
Loading…
Reference in New Issue
Block a user