Skip to main content
No Result Found

Upload app builds from Firebase

Integrate Firebase with Appium to import your Firebase projects and test your apps on App Automate.

Firebase is Google’s application development platform that helps you create, deploy and improve your apps. With Firebase, you can build iOS as well as Android apps. You can upload your apps to Firebase and test them on App Automate through BrowserStack’s Firebase integration.

Prerequisites

Register app

To use Firebase in your app, you need to register your app with your Firebase project.

Distribute app

Use Firebase App Distribution to distribute your app to multiple devices. To do this, follow these steps:

  1. In the Firebase console, select your project.
  2. Click Run and then click App Distribution.
  3. In Releases, select the app you want to distribute from the drop-down menu.
  4. Upload the .ipa or .apk or .aab file corresponding to your app.
  5. Create a release for the build and click Distribute.

For detailed steps, see App distribution.

Integrate Firebase with App Automate for testing

Once you register your app with Firebase, you can use your Firebase credentials on any of the device in BrowserStack’s device cloud, access the app and test it using App Automate.

To do this, follow these steps:

Use the Get release API to get your Firebase app’s release.

To specify parameters, use the following format:

projects/{projectNumber}/apps/{appId}/releases/{releaseId}

Here is a sample request:

Sample request
Copy icon Copy

To retrieve the parameter details, see the following:

  • In the Firebase console, go to your Project settings to get your projectNumber and appId.
  • To get the releaseId, go to Releases under App Distribution. Alternatively, you can click Copy in the Releases tab and copy the ID after release in the URL.

The response body contains an instance of Release if the request is successful.

Here is a sample response:

Sample response
Copy icon Copy

The response contains binaryDownloadUri, a signed link with an expiry date of one hour. Click the link to download the app binary file (IPA/APK/AAB).

Use BrowserStack’s Upload API to upload the app on the BrowserStack cloud. You can upload the app in the following ways:

  • Upload from filesystem : Use this option if you have downloaded the app binary file (IPA/APK/AAB) using binaryDownloadUri. For more information, see Upload apps from filesystem.
  • Upload using public URL : Use this option to directly upload the app using the binaryDownloadUri signed link. For more information, see Upload apps using public URL.

Use the following cURL request to upload an app using binaryDownloadUri :

Copy icon Copy

You can now use the App ID generated in your automation scripts to run App Automation tests on real devices.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle