Skip to content

Simple web app to test Firebase Cloud Messaging functionality.

License

Notifications You must be signed in to change notification settings

surdarmaputra/fcm-device-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcm-device-simulator

Simple web app to test Firebase Cloud Messaging functionality. Adopted from https://github.com/firebase/quickstart-js/tree/master/messaging with some modifications. It can be useful to test Firebase Cloud Messaging functionality from your backend application.

See this documentation for the quickstart guide.

Getting Started

  1. Create a project on Firebase Console.
  2. Install Firebase CLI by running npm install -g firebase-tools. (Make sure you have Node.js and npm already installed).
  3. Configure Firebase CLI credential using firebase login and follow the steps shown in the console.
  4. Go to project directory and change the value of default property inside .firebaserc file with the name of project you have created.
  5. Run firebase use [your firebase project ID] to set current project with your Firebase Project. Project ID can be found in Firebase Console -> Project Settings -> General Tab.
  6. Run firebase server to fire up a local server containing your project
  7. or run firebase deploy to upload your project into Firebase Hosting.
  8. After deploying into Firebase Hosting, you can access your project from URL <your-project-name>.firebaseapp.com.

Credits