Create a Google Firebase project and enable the Google Vision API.
Before you begin
Role required: adminPhoto search requires a Google Cloud / Firebase account to analyze images and return search results.
If you already have a Google account, you can use your existing account. If not you
can create an account at https://firebase.google.com/.
Note: Configuration for your Firebase account includes upgrading your account to the Blaze
plan. This plan is a billable service that you must configure with
Google.
Procedure
-
Navigate to Firebase website, and sign in with a new or existing
Google account.
-
Click Create Project.
-
Give your project a name and continue through the guided steps. The Firebase project page appears once you have completed the
project setup.
-
From the project setup page, add an iOS or Android app to your project by
selecting the iOS or Android
button.
-
In the App setup page, fill in the form to add an app to
your Firebase project.
-
Enter a bundle ID and App nickname for your app. There are no specific requirements for the
bundle ID and app nickname fields.
-
You do not need to download the configuration file, add an Firebase SDK, add an initialization code, or run
your app to verify installation. You can click
Next or Skip this step
to bypass these steps.
After completing setup you can see the configuration page for your
project, with your new application listed.
-
Click the Spark Plan button.
-
Select the Blaze plan.
Note: The Blaze plan is a billable plan. For details on
pricing see
Firebase pricing.
-
When prompted, create a billing account and enter in your payment
details.
-
Navigate to the Google Cloud Platform website.
-
Log in to the website using the same Google account used in the previous
steps.
-
In the header, select the project you created in previous steps.
-
Use the APIs & Services menu option to locate and
enable the Google Vision API.
-
Return to the Firebase website, and open your project settings
page.
-
In another browser tab or window, log in to your ServiceNow instance.
-
Navigate to , and select the record for the mobile app where you want to
configure photo search.
-
In the Vision iOS App ID field, enter the App ID for
your iOS app listed on your Firebase project settings
page.
-
In the Vision Android App ID field, enter the App ID for
your Android app listed on your Firebase project settings
page.
-
In the Vision API Key field, enter the Web API Key
listed on your Firebase project settings page.
-
Click Update.