Ios6 registerDeviceToken已弃用

Ios6 registerDeviceToken已弃用,ios6,push-notification,apple-push-notifications,Ios6,Push Notification,Apple Push Notifications,我有一个应用程序,其中我使用城市飞艇推送通知 我有下面的代码 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { UALOG(@"APN device token: %@", deviceToken); // Updates the device token and registers th

我有一个应用程序,其中我使用城市飞艇推送通知

我有下面的代码

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    UALOG(@"APN device token: %@", deviceToken);
    // Updates the device token and registers the token with UA
    [[UAirship shared] registerDeviceToken:deviceToken];

}
我收到一条关于register devicetoken已弃用的警告:已弃用,如libUAirship1.3.0中所述

在ios6中有什么替代方案


提前感谢…

根据您必须使用的:
[[UAPush shared]registerDeviceToken:deviceToken]

不,这是他们的文档,因此建议这样做,您可以阅读以了解如何在其中使用。好的。谢谢您的帮助。没问题,很高兴我能提供帮助。