Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Facebook Messenger clear push notifications from the lock screen if you’ve read them on desktop?

When I receive a message on Facebook I get a push notification on a lock screen (iOS). Then I read this message on desktop. Right after that this push notification disappear without any interactions with the phone. How can I implement the same thing myself for removing outdated notifications?

The second usage could be stitching notifications together. For instance Instagram sends you a push when someone liked your photo. After 20 likes your notifications screen is ruined and unreadable. But using the same principal as Facebook does it seem to be possible remove previous notification of the same sort and create new with the increased counter. No "User A liked photo X, User B liked photo Y etc", but "20 users liked photo Z" instead.

I've seen couple of treads on similar topics here, but still no answer so far. Thanks!

like image 345
Alex Avatar asked Feb 24 '14 11:02

Alex


People also ask

How do I clear the notifications for Messenger on Facebook !?

You can delete notifications on your Facebook account's Notifications tab from either the desktop or mobile versions of Facebook. From the Notifications tab, click or tap the three dots next to a notification, and then click or tap "Remove this notification" to delete it.

Why does my Messenger Notification stay on?

When you switch over to the conversation in mobile, however, viewing that sentiment does not register as having read the message. This causes the sentiment to remain in unread status, triggering the new message icon to recur again and again.

What is a push notification on Facebook?

Push notifications: sent when you're not actively using Facebook (example: on your device's lockscreen). In-app notifications: sent when you're using Facebook. These show up as numbers over the in Facebook's navigation, or over the Facebook app on your phone.


1 Answers

See the Multitasking Enhancements and the silent push notifications in particular. Using the silent push you can notify your app that new content is available and also download that content and/or set the badge number for example without displaying the notification in the "Notification Center". You'll have to set the UIBackgroundModes with the remote-notification value in order to make this work.

You can send silent push if the user has seen the content on another platform and clear the badge number on your iOS app.

like image 182
Ivan Genchev Avatar answered Sep 28 '22 22:09

Ivan Genchev