I am stuck in the notification tab to remove the tape push notification.
I have tried to use this code already:
[UIApplication ShareApp] .applicationIconBadgeNumber = 1; [UIApplication ShareApp] .applicationIconBadgeNumber = 0;
This will remove all notifications from the notification bar, anyone can help me.
I've been searching for the last two days, but have not found any solution.
I believe you want to delete the tape push from the push list & amp; Not all notifications.
Apple has made it by default. When you click on a push notification, it removes all notifications. The code you are doing is just setting the application badge number, which has nothing to do with push notifications.
I believe that what you want is to be removed just by getting removed and keep the rest of the push. Okay?
Okay, this can be done, but there is a lot of work in it.
- When Push arrives, save the data locally.
- When you click on the push, remove that push from the local data.
- When you close the app, send local push using your local data.
Note: To maintain the badge, you need to keep the updates on the push.
No comments:
Post a Comment