UAPush共享无法识别ios中的UrbanAhiphip
问题描述:
我正在使用UrbanAhiphip的PushNotification工作。在这我得到的通知,但我的页码不显示。我尝试下面的代码UAPush共享无法识别ios中的UrbanAhiphip
[[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];
}
但是对我来说在“[UAPush共享]”“共享”越来越错误,如“为选择没有已知的类方法‘共享’“
我已导入类
#import "UAirship.h"
#import "UAPush.h"
即使我得到很多错误。
任何人都可以帮助我什么是我在这做的错误。 在此先感谢。
答
它看起来像你来自旧版本的SDK。 UAPush实例可以从[UAirship push]
获得,但很多。请看看setup guide,特别是Automatic Integration部分。我们还提供旧版SDK的migration guides。