feat: 新增iOS token截取,并回调到flutter业务层。
This commit is contained in:
parent
5b460a179c
commit
d22f0e6abb
@ -110,6 +110,17 @@ static NSMutableArray<FlutterResult>* getRidResults;
|
|||||||
for (FlutterResult result in getRidResults) {
|
for (FlutterResult result in getRidResults) {
|
||||||
result([JPUSHService registrationID]);
|
result([JPUSHService registrationID]);
|
||||||
}
|
}
|
||||||
|
if ([JPUSHService registrationID] != nil && ![[JPUSHService registrationID] isEqualToString:@""]) {
|
||||||
|
result([JPUSHService registrationID]);
|
||||||
|
NSDictionary *params = @{
|
||||||
|
@"cmd" : @2005,
|
||||||
|
@"message" : [JPUSHService registrationID],
|
||||||
|
};
|
||||||
|
NSLog(@"jpush onCommandResult params: %@", params);
|
||||||
|
[_channel invokeMethod:@"onCommandResult" arguments:params];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
[getRidResults removeAllObjects];
|
[getRidResults removeAllObjects];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user