Push Notifications API Key

Hello,

I’m trying to setup the Push Notifications service in a Unity Android project.
I have to fill in some values in the Project Settings => Services => Push Notifications.
I have found the Sender ID, Application ID and Project ID in the Firebase console, but I can’t find the API Key.
If I try to run it without the API Key, I get an exception:
“Exception: UGS Push Notifications is missing Android settings - make sure these are set in the editor Project Settings”.

Anyone knows where I can get the API Key?

Thanks in advance,
George

Hey George!

It should be listed in your Firebase Dashboard as “Web API Key”, just below the Project ID (image attached).

I can see our documentation isn’t clear here, so will work with the team to get that updated!

Let us know if you come across any other issues :slight_smile:

Mike

Hello Mike,

Thanks for taking the time to answer.
For some reason, my WEB API Key has this greyed-out value: No Web API Key for this project.
I have followed the instructions from here:
https://docs.unity.com/push-notifications/Integration.html
and there is no mention of creating a Web API Key.

Cheers,
George

Hey George,

No problem, always happy to help.

This appears to be a Firebase issue - could you toggle Authentication on in your Firebase project and see if that helps?

More info in this Stack Overflow thread.

Cheers,

Mike

It worked perfect.
Thank you very much, Mike.

Great - glad to hear it :slight_smile:

Happy Push Notification-ing!

Mike