mugan86 / angularjs-firebase-push-to-android

App in AngularJS to manage PUSH notifications to send with Firebase to Android Apps
2 stars 1 forks source link

Angular

This project is generated with yo angular generator version 0.15.1.

Build & development

Run grunt for building and grunt serve for preview.

Testing

Running grunt test will run the unit tests with karma.

Instructions to start with firebase and push notifications

Google's project to add a step to send notifications (or other services).

https://console.firebase.google.com/?pli=1

Show Notifications API KEY in Firebase:

  1. Select project.
  2. Click in "Settings" (icon) - Locate in up-left part.
  3. Project configuration.
  4. Select "Cloud Messaging" tab.
  5. Copy Server key that looks like this "AIzaSyBHlndxnzF9xFJ..." (not original, only to show)

Select the existing project (if you have created, otherwise we will have to create a) and "Add firebase".

Adding Firebase Our Google Account

After adding Firebase our Google account to a project, we will need the following steps.

We are home page, "Add application" take the opportunity, in order to add to our application (notifications settings in this case):

Obtain SHA KEY in Android Studio (require to receive/send notifications in our apps):

Add firebase in our Android project:

Firebase Cloud Messaging server(FCM) Screenshots:

Start Panel

New Message

5 messages limit!!

Message success send!!

Replace value API KEY with FCM Token value