极光推送一键关闭推送通知

1、打开推送
// 打开推送

[JPUSHService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];

2、关闭推送
// 关闭推送
[[UIApplication sharedApplication] unregisterForRemoteNotifications];

你可能感兴趣的:(极光推送一键关闭推送通知)