mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 22:55:02 +08:00
update registrationId evet
This commit is contained in:
parent
14a40c6572
commit
184ee01d1d
@ -35,7 +35,10 @@ NSDictionary *_launchOptions;
|
|||||||
_jpushEventCache = @{}.mutableCopy;
|
_jpushEventCache = @{}.mutableCopy;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jpushSDKDidLoginNotification) name:kJPFNetworkDidRegisterNotification object:nil];
|
[JPUSHService registrationIDCompletionHandler:^(int resCode, NSString *registrationID) {
|
||||||
|
NSDictionary *event = @{@"registrationId": registrationID?:@""};
|
||||||
|
[JPushPlugin fireDocumentEvent:JPushDocumentEvent_receiveRegistrationId jsString:[event toJsonString]];
|
||||||
|
}];
|
||||||
|
|
||||||
if (notification) {
|
if (notification) {
|
||||||
if (notification.userInfo) {
|
if (notification.userInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user