I am struggling to set up my SHA-1 key correctly and restrict the api key on android.
I have followed the steps to set up app-check using the SHA-256 key which works fine.
I have then added my SHA-1 key to my andriod api key on the GCP credentials page and added the relevant restrictions. I have also added it to the SDK setup and configuration on the firebase console.
If i add the api restrictions it works. The minute I add application restrictions (using my package name and SHA-1 key) it throws the following error despite the user being logged in (again without the application restriction this works fine)
User is not authenticated, please authenticate using Firebase Authentication and try again.
I generated my key using the steps in this link: Generate SHA-1 for Flutter/React-Native/Android-Native app
- Am i doing anything wrong? The app-check sha-256 works so why does the sha-1 key not?
- What is the difference between adding the SHA-1 key on the firebase SDK setup and configuration vs the credentials section on the GCP console
- Are applying the restrictions to the key actually required if using app check?