教學

不需伺服器的 App Store 購買通知

在 Lumetric 加入 In-App Purchase 金鑰,開啟 Daily report notification,再到設定開啟 Purchases as they happen。你的 iPhone 會在背景檢查 Apple 的購買紀錄,並在有新訂閱、試用、付款或退款時顯示通知。你不需要自己的伺服器。

更新於

在 App Store 下載

重點速覽

  • 需要 Lumetric Pro 與 In-App Purchase 金鑰
  • iOS 通常每 1 到 4 小時在背景檢查一次,夜間、低耗電模式或你把 App 往上滑掉之後,檢查會更少
  • 打開 Lumetric 會立刻檢查
  • 通知在裝置上產生,所以不需要伺服器,也不需要推播權杖

開啟購買通知

  1. 加入 In-App Purchase 金鑰

    請見 In-App Purchase 金鑰:Settings → Accounts & connections → 選擇帳號 → Connect the In-App Purchase key。

  2. 開啟通知

    在 Settings → Notifications 開啟 Daily report notification,Lumetric 會請求權限。如果你之前拒絕了,請到 iPhone「設定」→「通知」→ Lumetric 開啟。

  3. 開啟購買通知項目

    下方會出現 Purchases as they happen 開關。沒有 Lumetric Pro 或沒有 In-App Purchase 金鑰時,它無法使用。

  4. 選擇事件

    勾選你想要的項目:New subscriptions、Trial starts、Trials paid、One-time purchases、Renewals、Refunds、Turned renewal off、Failed payments。

  5. 測試看看

    同一個設定頁的 Send test notification (3 s) 按鈕會送出一則範例的新一天通知,讓你確認 iOS 有顯示通知。

事件從哪裡來

Apple 會為每筆購買保存 App Store Server 通知的紀錄。Lumetric 用你的 In-App Purchase 金鑰,直接從你的 iPhone 讀取。所以你既不需要自己的伺服器,也不需要在 App 裡加 SDK。有一個條件:你的 App 必須開啟 App Store Server Notifications,詳情請見 In-App Purchase 金鑰教學。

為什麼會有延遲

沒有伺服器的話,通知無法在同一秒送達:何時在背景喚醒 App 由 iOS 決定。如果你打開 Lumetric,就會立刻檢查。

Lumetric 的其他通知

通知內容需要什麼
Summary of the day標題為「📊 Summary for …」。預設內容為下載量、銷售額、收益與 MRR,並附上與前一天比較的箭頭免費,不需要 In-App Purchase 金鑰
Subscriptions for the dayApple 發布 MRR 與新訂閱後,會以另一則通知送出。用 Subscriptions in a second notification 開關開啟免費版
Financial report and payoutApple 發布當月報表時,以及預計付款日當天Lumetric Pro
購買每一筆訂閱、試用、退款,以及你選擇的其他事件Lumetric Pro 與 In-App Purchase 金鑰

常見問題

開關無法使用

兩者缺一不可:Lumetric Pro 與已連接的 In-App Purchase 金鑰。只有在 Daily report notification 開啟時,才看得到這個開關。

我會收到退款通知嗎?

會,你可以在清單中開啟 Refunds 事件。另外還有 Failed payments:扣款沒有成功,Apple 會再試一次。

為什麼通知沒有馬上送達?

App 在背景檢查購買紀錄,喚醒時間由 iOS 決定。打開 Lumetric 就會立刻檢查。