WhiskeyMateWhiskeyMate
← 所有文章

指南

信息尽在掌握,方式由您决定

控制藏品更新、共享酒款和公告的通知

0 人觉得有帮助
<h2>概览</h2><p>WhiskeyMate 让您控制希望接收的通知类型。这些设置以账户偏好标志(例如 <code>receiveUpdateNotifications</code>)的形式存储,也可用于订阅/取消订阅您的设备到 Firebase Cloud Messaging (FCM) 主题。</p><h2>通知类别(当前)</h2><ul> <li><strong>应用更新通知</strong></li> <li><strong>价格通知</strong></li> <li><strong>评论与社交通知</strong></li> <li><strong>新闻通知</strong></li> <li><strong>提醒通知</strong></li> <li><strong>营销通知</strong></li></ul><h2>何处管理通知</h2><ul> <li><strong>iOS</strong>: 在您的个人资料/设置区域中,打开<em>通知设置</em>并切换类别开启/关闭。</li> <li><strong>Android</strong>: 在“个人资料”屏幕中,打开<em>管理通知</em>并切换类别开启/关闭。</li> <li><strong>Web</strong>: 访问 <code>/preferences.html</code> → <strong>通知偏好设置</strong>并勾选复选框,然后保存。</li></ul><h2>工作原理(实现细节)</h2><ul> <li><strong>账户偏好标志</strong>: WhiskeyMate 存储布尔字段,例如 <code>receiveAllNotifications</code>、<code>receiveUpdateNotifications</code>、<code>receivePriceNotifications</code>、<code>receiveCommentNotifications</code>、<code>receiveNewsNotifications</code>、<code>receiveReminderNotifications</code> 和 <code>receiveMarketingNotifications</code>。</li> <li><strong>FCM 主题(移动端)</strong>: 在 iOS 和 Android 上,多个开关用于订阅/取消订阅您的设备到具有匹配名称的 FCM 主题(例如 <code>receiveUpdateNotifications</code>)。</li> <li><strong>Web</strong>: 网页偏好设置页面会将您的通知标志保存到您的用户文档中,但网站本身不会像移动应用程序那样接收推送通知。</li></ul><h2>重要提示</h2><ul> <li><strong>系统权限仍然重要</strong>: 如果在操作系统层面禁用了通知,即使在 WhiskeyMate 中启用了通知,您也不会收到推送。如果权限被拒绝,iOS 会将您引导至系统设置。</li> <li><strong>“全部切换”</strong>: 两个移动应用程序都提供“全部切换”选项,可同时开启/关闭多个类别(并更新这些类别的主题订阅)。</li> <li><strong>类别行为可能有所不同</strong>: 某些类别可能是基于主题的(广泛公告),而其他类别则可能根据功能通过更直接的定向方式发送。</li></ul>
0 人觉得有帮助