在应用程序打开之前解析发送推送通知

时间:2014-12-14 13:25:30

标签: parse-platform push-notification

是否可以向尚未打开应用程序的设备发送推送通知? (但已安装)。

1 个答案:

答案 0 :(得分:1)

不,你不能。因为您必须要求注册设备才能获得令牌。

UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert |
                                                UIUserNotificationTypeBadge |
                                                UIUserNotificationTypeSound);
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes
                                                                         categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];

字体:https://parse.com/docs/push_guide#top/iOS