Skip to content

Firebase Setup for TFLite model deployment and Remote configuration

arman-tdev edited this page May 5, 2023 · 3 revisions

Firebase setup for TFLite model deployment

Firstly We need an account of firebase to publish and download TFLite model

https://console.firebase.google.com/

1) Enter project name:

image

2) Press on Continue button:

image

3) Select Account to continue:

image

4) Press on continue button:

image

5) Click on Android:

image

6) Add package name which will get from android/app/build.gradle file then once added package name click on Register button:

image

7) Download Service json file:

image

add this Service json file into android/app within app folder paste service json file

8) Do not add this dependency which is already added in project:

image

9) Press continue button:

image

Firebase setup for Remote configuration to enable TFLite model

i) If remote config flag is set as true in firebase

ii) Then tflite model will be downloaded in mobile once it's timer completed

iii) Timer can be change in RemoteConfig.java file.

iv) Timer will be count in second

image

---> There are some step for enable remote configuration which are listed below.

1) Press on Remote Config

image

2) Press on Create Configuration

image

3) Add field name with its data type and save it:

image

4) Click on Publish Changes

image
Clone this wiki locally