以下流程是針對 Android 推播通知設定,請在 windows 電腦上執行!
這次的主題是 Expo 串接 Firebase 和 Azure,Azure 運行流程、編譯 App 和除錯會放在之後的文章。
前置準備
在這篇文章中,你需要事先準備
- Google 帳號
- Firebase 帳號
- Azure 帳號
- 一個 React Native / Expo 專案(安裝方法參考)
- 安裝指令
npx create-expo-app@latest
- 使用
npx expo prebuild
生成 android 資料夾 - 修改專案 app.json 檔案中的
android package
名稱
- 安裝指令
- 安裝 Android Studio
Firebase 設定
1. 建立 Firebase Android 應用程式
在 Firebase 建立一個新專案後,新增 Android 應用程式