0

プッシュ通知にアーバン飛行船を使用しているアプリがあります。

私は以下のコードを持っています。

- (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 is deprecated: deprecated の警告が libUAirship1.3.0 のように表示されます。

iOS6でこれに代わるものは何ですか?

前もって感謝します...

4

1 に答える 1

1

UrbanAirship のドキュメントによると、以下を使用する必要があります。[[UAPush shared] registerDeviceToken:deviceToken];

于 2013-07-15T11:25:33.443 に答える