Create service account
Go to your Google Firebase Console, open a project you want to integrate
Navigate to
Project Overview
→Project Settings
Go to
Service accounts
→Manage service account permissions
Click on
Create service account
Fill in Service account ID field, click on
Create and continue
Click on
+ ADD ROLE
Find and select
Firebase Cloud Messaging API Admin
role, pressCONTINUE
Third step “Grant users access to this service account” is optional. You may press
DONE