Urban Airship标签在设备注册时被擦除

时间:2014-07-24 19:33:25

标签: ios objective-c urbanairship.com

因此,我们在iOS / android中使用Urban Airship作为推送消息传递API。在iOS中,当应用程序打开时,我们在我们的app委托中使用此方法将其注册为城市飞艇。

UAConfig *config = [UAConfig defaultConfig];

// You can also programmatically override the plist values:
// config.developmentAppKey = @"YourKey";
// etc.

// Call takeOff (which creates the UAirship singleton)
[UAirship takeOff:config];
// Request a custom set of notification types
[UAPush shared].notificationTypes = (UIRemoteNotificationTypeBadge |
                                     UIRemoteNotificationTypeSound |
                                     UIRemoteNotificationTypeAlert |
                                     UIRemoteNotificationTypeNewsstandContentAvailability);
// This will trigger the proper registration or de-registration code in the library.
[[UAPush shared] setPushEnabled:YES]; 

我们遇到的麻烦是,无论何时设备第二次登录,它似乎都会使用我们自己的城市飞艇后端工具擦除我们创建的标签。有谁知道这方面的解决方案?

1 个答案:

答案 0 :(得分:0)

来自@dperconti在UA支持网站评论中提到的文章:

[UAPush shared].deviceTagsEnabled=NO;
在致电

之前应该打电话给

[UAirship takeOff:config];

在您的app委托的didFinishLaunchingWithOptions方法中。感谢这一发现,UA的支持网站可能很难找到答案,而电子邮件也无济于事。

相关问题