没有收到推送通知企业应用程序

时间:2018-01-03 13:34:38

标签: objective-c push-notification

我已经创建了一个企业帐户的应用程序,它为几个员工,.pem证书已上传到服务器,但我仍然没有收到任何推送通知,知道添加了所有功能和代表,但没有收到。应用程序询问用户是否要接收推送通知,我们按下"允许",令牌已发送到服务器,已调用didRegisterForRemoteNotifications,沙箱设置为1(开发),但没有收到

@interface AppDelegate ()<CLLocationManagerDelegate,UNUserNotificationCenterDelegate>
.
.
.
+ (void)registerPushNotifications {
    [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
    [[UIApplication sharedApplication] registerForRemoteNotifications];
}

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
.
.
.
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
.
.
.
}

0 个答案:

没有答案