flutterfire configure
dart run build_runner watch --delete-conflicting-outputs
flutter pub upgrade
Generate Flutter l10n
flutter gen-l10n
For local emulator cloud function, configure appcheck debug token in Firebase console.
For android local emulator, change computerIp in firebase.dart to your computer ip address.
Enable useEmulator in main.dart
Enable debugMode in main.dart for appcheck token
To disable cloud function region comment out ( region: 'asia-south1' ) in all cloud functions.
To disable appcheck enforcemnt comment out (enforceAppCheck: true) in all cloud functions.
Running Cloud function Emulator:
firebase emulators:start
Building Cloud Functions
cd functions
npm run build:watch
Generating Proto files
cd proto
npx buf generate lib
- Create User : onUserCreate
- Update User : callUserUpdate
- Delete User : deleteAuthUser
- Create Chat Room : callCreateRoom
- Update Room Info : updateRoomInfo
- Delete Room : deleteRoom
- Upgrade Access To Room : upgradeAccessToRoom
- Update RoomUser Time : updateRoomUserTime
- Delete RoomUser : deleteRoomUser
- Send Tweet : sendTweet
- Update Tweet : updateTweet
- Delete Tweet : sendTweet
- Tweet to Topic : tweetToTopic
- Save FCM Token : callFCMtokenUpdate
- Subscribe to Topic : callSubscribeFromTopic
- Unsubscribe to Topic : callUnsubscribeFromTopic
- Toggle Topic Subsription : toggleTopicSubsription
- Update FCM Token : callFCMtokenUpdate
- Delete FCM Token : deleteFCMToken
- Schedule Prune Tokens : pruneTokens
- Generate Thumbnail : pruneTokens