您必須先連結至 Google Play,才能查看 Android 應用程式的 in_app_purchase 和 subscription 事件。將 Google Play 連結至 Firebase 專案後:
- 可在 Firebase 中使用 Google Play 資料 (例如:收益資料) 和功能。
- 可在 Google Play 管理中心使用 Firebase 資料 (例如您的 Google Analytics for Firebase 目標對象) 和功能。
連結至 Google Play
如要將 Google Play 連結至 Firebase 專案,請按照下列步驟進行:
- 登入 Firebase 帳戶。
- 按一下
,然後選取 [專案設定]。
- 按一下 [整合] 分頁標籤。
- 按一下 Google Play 資訊卡上的 [連結]。
如果您的專案已完成連結,則會出現 [管理]。
若您沒有 Google Play 開發人員帳戶,請按一下 [升級並連結] 建立新帳戶。
連結建立之後,系統會匯入您在 Google Play 中各個現有 Android 應用程式的應用程式簽署憑證 SHA1。您可以在「專案設定」中查看相關資訊。
取消連結 Google Play
如要取消 Google Play 與 Firebase 專案的連結,請按照下列步驟進行:- 登入 Firebase 帳戶。
- 按一下
,然後選取 [專案設定]。
- 按一下 [整合] 分頁標籤。
- 按一下 Google Play 資訊卡上的 [管理]。
- 在 [Google Play 詳細資料] 下方點選 [取消連結帳戶]。
- 按一下 [確認取消連結]。
取消 Google Play 開發人員帳戶和 Firebase 專案的連結後,資料共用也會隨之停止。
- 凡是在連結中斷之前共用的資料,仍可在 Google Play 和 Firebase 中存取。