app在登录后收到推送,退出登录后要关闭推送
打开APN推送 :
[[UIApplication sharedApplication] registerForRemoteNotifications];
关闭APN推送
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
app在登录后收到推送,退出登录后要关闭推送
打开APN推送 :
[[UIApplication sharedApplication] registerForRemoteNotifications];
关闭APN推送
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
转载于:https://www.cnblogs.com/wangbaixue/p/5191790.html