generate api key for firebase project code example
Example 1: api key firebase
Go to project settings, and then to Cloud Messaging, there you can find your api key
Example 2: how to get the API KEY of my firebase project
You can open the project in the firebase, then you should click on the project settings, then goto project settings you will see the web API Key there