应用程序不要求在应用程序中启用通知

时间:2012-12-12 10:42:40

标签: iphone objective-c ios push-notification

我正在尝试构建一个使用推送通知的应用。我做了有关证书,app-id,配置文件的所有步骤。然后在我的应用程序中,我在applicationsDidFinishWithLaunchingOptions中添加了这段代码。

  NSLog(@"tille here");
    [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
     (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
    UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

但我没有得到要求它的弹出窗口。

有人可以帮忙吗?

亲切的问候

1 个答案:

答案 0 :(得分:0)

link将帮助您创建推送通知,并解决您的问题,只需阅读并按照相同的方式实施。