我正在开发Cordova应用程序,它使用Urbanaisrship推送通知。
当我将我的构建加载到拥有(7.1)版本的iPhone-4上时,我可以看到我的应用程序设置为->Notification。
但是当我将相同的内置程序加载到我的其他设备Iphone 5s上时,它的版本为8.2,我的应用程序没有显示在设置->Notification。
所以任何朋友都可以告诉我IOS 8.2有什么问题吗?
发布于 2015-05-13 12:08:39
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//other code
// add this piece of code
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) {
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]];
[application registerForRemoteNotifications];
}
}将这段代码添加到应用程序委托文件中
https://stackoverflow.com/questions/30211908
复制相似问题