Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 958 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 958 Bytes

Get Started Example Firebase Messaging

  • Clone repository
git clone https://github.com/MicheleDeF/firebase_messaging.git
  • Edit init.js with your credential firebase
var firebaseConfig= 
{ 
  apiKey:"<Api-Key>", 
  authDomain:"<ID-Project>.firebaseapp.com", 
  databaseURL:"https://<ID-Project>.firebaseio.com", 
  projectId:"<ID-Project>", 
  storageBucket:"<ID-Project>.appspot.com", 
  messagingSenderId:"<ID-Sender>", 
  appId:"<App-Id>", 
  measurementId:"<Measurement-ID>" 
};
  • Edit manifest.json with yuor sender id
{
  "//_comment1": "Some browsers will use this to enable push notifications.",
  "//_comment2": "It is the same for all projects, this is not your project's sender ID",
  "gcm_sender_id": "<Sender id>"
}
  • Follow the instructions on how to proceed from link