简体   繁体   中英

How to Hide or cancel Push notification in iOS ( Uiusernotification or RemoteNotification) which comes from apns in background mode and lock screen?

In my app RemoteNotification is repeated so i want to handle them if they are repeated i want to hide them if not wants to show.

How to Hide or cancel Push notification in iOS ( Uiusernotification or RemoteNotification) which comes from apns in background mode and lock screen?

[[UIApplication sharedApplication] unregisterForRemoteNotifications];

将上面的代码放置在您想要隐藏或取消APN的位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM