我在IBM MobileFirst 7.1推送通知中存在问题订阅者ID(USERID)
我已在MobileFirst服务器7.1 Liberty配置文件
中成功部署了推送通知示例应用程序我配置 WRKLGHT 数据库以存储 NSString *string = @"{{nat fs g player|no=1|pos=GK|name=[[Hugo Lloris]]|age={{Birth date and age|1986|12|26|df=y}}|caps=73|goals=0|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}}";
NSError *error = NULL;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"\\{\\{nat fs g player\\|no=(.*)\\|pos=(.*?)\\|name=\\[\\[(.*?)\\]\\]\\|age=\\{\\{Birth date and age\\|(.*?)\\|(.*?)\\|(.*?)\\|df=y\\}\\}\\|caps=(.*?)\\|goals=(.*?)\\|club=\\[\\[(.*?)\\|(.*)"
options:NSRegularExpressionCaseInsensitive
error:&error];
NSArray *matches = [regex matchesInString:string
options:0
range:NSMakeRange(0, [string length])];
for (NSTextCheckingResult *match in matches) {
NSString *a = [string substringWithRange:[match rangeAtIndex:0]];
NSString *b = [string substringWithRange:[match rangeAtIndex:1]];
NSString *c = [string substringWithRange:[match rangeAtIndex:2]];
NSString *d = [string substringWithRange:[match rangeAtIndex:3]];
NSString *e = [string substringWithRange:[match rangeAtIndex:4]];
NSString *f = [string substringWithRange:[match rangeAtIndex:5]];
NSString *g = [string substringWithRange:[match rangeAtIndex:6]];
NSString *h = [string substringWithRange:[match rangeAtIndex:7]];
NSString *i = [string substringWithRange:[match rangeAtIndex:8]];
NSString *j = [string substringWithRange:[match rangeAtIndex:9]];
NSString *k = [string substringWithRange:[match rangeAtIndex:10]];
}
和NSString *string = @"{{nat fs g player|no=1|pos=GK|name=[[Hugo Lloris]]|age={{Birth date and age|1986|12|26|df=y}}|caps=73|goals=0|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}}{{nat fs g player|no=16|pos=GK|name=[[Steve Mandanda]]|age={{Birth date and age|1985|3|28|df=y}}|caps=21|goals=0|club=[[Olympique de Marseille|Marseille]]|clubnat=FRA}}";
登录过程USERID未存储在设备表中。在该设备表中, USERID 字段存储为 NUL 。因此 USERID 未显示在设备标签移动优先控制台中。
在application-descriptor.xml文件中正确配置了GCM pushsenderkey和pushsenderid
在pushdevices
中设置以下两个属性
subscriber id
在worklight.properties
wl.device.tracking.enabled=true
wl.device.enableAccessManagement=true
我在application-descriptor.xml
<userIdentityRealms>PushAppRealm</userIdentityRealms>
答案 0 :(得分:0)
这是由于用户错误造成的:
它对我有用..我犯了一个错误......在一个版本中开发了在另一个修订包中部署该应用程序版本