This is Firebase+PHP demo app for sending push notification all tokens registered devices. http://www.gokhanazizoglu.com/firebase-push-notification/
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