Sending push notification wih Firebase Cloud Messaging API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
PHP
Screen
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Firebase Push Notification

This is Firebase+PHP demo app for sending push notification all tokens registered devices. http://www.gokhanazizoglu.com/firebase-push-notification/

Usage

You need to change some of the information and put yourself in place of the following.

  • Database informations in db_config.php
  • Table name in registerToken.php
  • Server key 'Authorization:key=your server key'. You can find server key in firebase console
  • Change google.json file with yours
  • "NOTIF_URL" in MainActivity.class
  • "REGISTER_URL" in MyFirebaseInstanceIDService.class

Screens

FCM1 FCM2