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>網頁版</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>網頁版</strong>:網頁偏好設定頁面會將您的通知旗標儲存到您的使用者文件,但網頁本身不會像行動應用程式一樣接收推播通知。</li></ul><h2>重要注意事項</h2><ul> <li><strong>系統權限仍然重要</strong>:如果通知在作業系統層級被停用,即使在 WhiskeyMate 中啟用,您也將不會收到推播。如果權限被拒絕,iOS 會引導您前往系統「設定」。</li> <li><strong>「全部切換」</strong>:兩款行動應用程式都提供「全部切換」選項,可同時開啟/關閉多個類別(並更新這些類別的主題訂閱)。</li> <li><strong>類別行為可能不同</strong>:某些類別可能基於主題(廣播公告),而其他類別則可能根據功能透過更直接的目標設定來傳送。</li></ul>
0 人覺得有幫助