如何在锁定屏幕上的Facebook Messenger的明确推送通知,如果你读过他们的桌面? [英] How does Facebook Messenger clear push notifications from the lock screen if you’ve read them on desktop?

查看:200
本文介绍了如何在锁定屏幕上的Facebook Messenger的明确推送通知,如果你读过他们的桌面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我收到Facebook上的消息,我得到一个锁屏(iOS版)上的推​​送通知。然后我读桌面此消息。这个推送通知后立即消失无任何与手机相关的互动。我如何能实现同样的事情,我自己删除过时的通知?

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?

第二个用法可以拼接在一起的通知。比如Instagram的送你,当有人喜欢你的照片一推。 20喜欢您的通知之后的屏幕被破坏且无法读取。但使用相同的本金如Facebook它似乎是同一类可能删除previous通知,并创造新的提高专柜。否用户A喜欢的照片X,用户B喜欢的照片Ÿ等,但20用户喜欢的照片Z来代替。

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!

推荐答案

查看<一个href=\"https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html\">Multitasking 的增强,特别是无声推送通知。使用静默推你可以通知你的应用程序,新的内容可用,并下载内容和/或设置例如证件号码,而不显示在通知中心的通知。你必须设置与远程通知值UIBackgroundModes为了使这项工作。

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.

您可以发送无声推送如果用户已经看到在另一个平台上的内容,并清除您的iOS应用的证件号码。

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

这篇关于如何在锁定屏幕上的Facebook Messenger的明确推送通知,如果你读过他们的桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆