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!
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With