OGeek|极客世界-中国程序员成长平台

标题: ios - Urban Airship 不更新 iOS 上的标签 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 14:46
标题: ios - Urban Airship 不更新 iOS 上的标签

我正在尝试更新我的 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 页面中。

这可能是什么原因造成的?



Best Answer-推荐答案


Urban Airship 因新设备 token 大量涌入而导致特定应用的注册事件出现延迟。额外的设备 token 由 iOS 7 创建,作为每个生产应用配置的新设备 token 的一部分。

截至本文发布时,应清除注册延迟。

关于ios - Urban Airship 不更新 iOS 上的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18945759/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4