2017-05-26 5 views
0

UrbanAirshipを使用してPushNotificationで作業しています。その中で私は通知を受けていますが、私にとってはページ番号が表示されていません。私がインポートされているUAPush共有がiosのUrbanAirshipで識別されない

「「『共有セレクタのための知られていないクラスメソッド」のようなエラーを取得している』共有「[UAPushが共有]」」で

[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | 
                 UIRemoteNotificationTypeSound | 
                 UIRemoteNotificationTypeAlert)]; 

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

} 

しかし、私のために次のコードを試してみましたクラス

#import "UAirship.h" 
#import "UAPush.h" 

多くのエラーが発生していますが、

私はこれで何をしたのか誰にでも助けてくれますか? ありがとうございます。

答えて

1

古いバージョンのSDKを使用しているようです。 UAPushのインスタンスは[UAirship push]からアクセスできますが、多くのことがあります。 setup guide、具体的にはAutomatic Integrationセクションをご覧ください。また、古いSDKバージョンのmigration guidesも提供しています。

関連する問題