How can i find `SENDER ID` in firebase?

2020-07-08 08:11发布

问题:

I am creating Push notification demo in ionic 2. I have tried to generate server key and sender key from firebase. i have follow this tutorial. but I can not found cloud messaging tab in my firebase project setting screen as shown bellow image and there is no Server key and sender Id.

I need SENDER ID for create push notification in my app as bellow,

cordova plugin add phonegap-plugin-push --variable SENDER_ID=12341234 --save

回答1:

Here is the steps,

  1. Go to Firebase Console
  2. Select your project
  3. Click on Setting icon near to Overview in left panel.
  4. Select Project settings.
  5. If you have already registered your app to project then click on CLOUD MESSAGING tab
  6. If you do not have registered you app then first register it from Overview tab and follow step 5.

and you'll get Sender ID



回答2:

Login firebase account go to project Setting. Here you can get Sender Id