The first step is to connect to Firebase services . To do this, you need to enter the Firebase console and create a new project. 3. If you use the on-device API, configure your app to automatically download the ML model to the device after your app is installed from the Play Store.