-
首先,先參考官方文件來設定必要環境與 Firebase 專案。
- Build Flutter Environment
- Create Firebase Project
- Configure app to use Firebase [Android, iOS]
- 填寫 applicationId、填寫 SHA1 值、下載 google-services.json、新增 Firebase SDK
-
FlutterFire 一個清單讓你連結到所有 Flutter 的 Firebase function pub
-
Check List 方便你開始引入功能
-
Know the function limits (price) 查看每個功能的限制與價格
- Follow the installation instructions from the link above.
- Import the plugin in the root of the app.
- Setup crashlytics and go to firebase console to build connection.
- Try to push an error by easily click the buttons. And the errors can be viewed from firebase console.
-
Follow the installation instructions from the link above. [auth + googleSignIn]
-
Activate Authentication providers from firebase console.
-
Implementing with corresponding sign in provider.
- Email / Password Registration
- Email / Password Sign In
- Anonymously Sign In
- Google Sign In
- Phone Sign In
- Other ways Sign In [Twitter, Facebook, Github ...]
- Follow the installation instructions from the link above.
- Activate Cloud Firestore from firebase console.
- Follow either pub usage instruction or the firebase tutorial.
- Implement CRUD functions and be aware of the race condition.
- Follow the installation instructions from the link above.
- Activate Storage function from firebase console.
- Example of Firebase Storage is here.
-
Follow the installation instructions from the link above.
-
Activate remote config from firebase console.
-
create a new parameter and publish the change.
- Follow the installation instructions from the link above.
- Implement FCM receive functions.
- Test FCM sending from firebase console [through Cloud Functions or Cloud Messaging].
- More details and example is here.
I made a FCM push notification function here.


