我正在尝试更新我的 iOS 设备上的标签。代码看起来像
NSArray* tags = @[@"some-tag", @"some-other-tag"]; // Tags are actually 55 characters long
UAPush* push = [UAPush shared];
[push setTags:tags];//update locally
[push updateRegistration];//update server
NSLog(@"Updated tags %@", push.tags);
push.tags 打印正确。但是在 UA Audience 页面上,我可以看到标签尚未更新。为了让事情变得更奇怪,API 调用https://go.urbanairship.com/api/device_tokens/{{token}}
返回不同的标签,然后是我设备上的标签并显示在 UA Audience 页面中。
这可能是什么原因造成的?