Skip to content

Commit fc03806

Browse files
authored
Update and improved instructions to fix API restrictions problem for FIS (#1425)
Updated according to Stackoverflow question and latest MSA / developer outreach emails.
1 parent 0db2cab commit fc03806

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

firebase-installations/API_KEY_RESTRICTIONS.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ The following SDKs updates introduce a dependency on the [Firebase Installations
1313
- ML Kit
1414
- Instance ID
1515

16-
17-
As a result, API restrictions you may have applied to API keys used by your Firebase applications may have to be updated to allow your apps to call the Firebase Installations API.
16+
As a result, API restrictions you may have applied to API keys used by your Firebase applications may have to be updated to allow your apps to call the [Firebase Installations API](https://console.cloud.google.com/apis/library/firebaseinstallations.googleapis.com).
1817

1918
## What do I need to do?
2019

2120
Before upgrading your application(s) to the latest SDK version, please **make sure that the API key(s) used in your application(s) are whitelisted for the Firebase Installations API:**
2221

23-
- **Open** the [Google Cloud Platform Console](https://console.cloud.google.com/apis/credentials?folder).
24-
- **Choose** the project you use for your application(s).
25-
- **Open** `APIs & Services` and **select** `Credentials`.
26-
- **Click** `Edit API Key` (pencil icon) for the API key in question.
27-
- **Scroll down** to the `API restrictions` section.
28-
- If the radio button shows `Don't restrict key`, the API key is not affected.
29-
Otherwise, from the dropdown menu, **add** the `Firebase Installations API` to the list of permitted APIs, and click `Save`.
30-
31-
**Note:** If you cannot find the [Firebase Installations API](https://console.cloud.google.com/apis/library/firebaseinstallations.googleapis.com) in the list of APIs, you might first have to enable the API for your project (to do so [click here](https://console.cloud.google.com/apis/library/firebaseinstallations.googleapis.com)).
22+
1. **Open** the [Google Cloud Platform Console](https://console.cloud.google.com/apis/credentials?folder).
23+
1. **Choose** the project you use for your application(s).
24+
1. **Open** `APIs & Services` and **select** `Credentials`.
25+
1. **Click** `Edit API Key` (pencil icon) for the API key in question.
26+
1. **Scroll down** to the `API restrictions` section.
27+
1. From the dropdown menu, **add** the `Firebase Installations API` to the list of permitted APIs, and click `Save`.
28+
1. If the radio button shows `Don't restrict key`, you may be looking at the wrong API key. \
29+
You can check which API key is used for the Firebase Installations API by looking at the [service usage page for your project](https://console.cloud.google.com/apis/api/firebaseinstallations.googleapis.com/credentials).
30+
31+
**Note**: **Verify** your fix by checking if you can see successful `200` requests increasing on the [Firebase Installations API request metrics page](https://console.cloud.google.com/apis/api/firebaseinstallations.googleapis.com/metrics). \
32+
**Note**: If you cannot find the Firebase Installations API in the list of APIs, you might first have to enable the API for your project (to do so [click here](https://console.cloud.google.com/apis/library/firebaseinstallations.googleapis.com)).

0 commit comments

Comments
 (0)