How to prevent an iOS notification being removed from the Notification Center when tapped

Viewed 209

Is there a way to prevent a remote notification in the Notification Center from being removed by the OS after it is tapped by the user? The tap invokes the app and didReceiveNotificationResponse() is called. I am not using badges in the notifications.

1 Answers

Apple is not allowing to persist the notification once after you open it.

What’s next You can create a local notification from data you get from push notification when user taps on it. I have not tried the implementation but it should work in your usecase.

User will not be knowing whether it is local or push notification.

Related