Simple cordova application using cordova-plugin-firebase-extended-notification.
Make sure that in Android SDK Manager it is installed:
- Android Support Library version 23 or greater
- Android Support Repository version 20 or greater
- Google Play Services version 27 or greater
- Google Repository version 22 or greater
Check the wiki for more.
- Clone it;
- Execute the
install.sh
script; - Download your
google-services.json
, from https://console.firebase.google.com, to theapp-example
directory; - Within
app-example
, executecordova run android
; - Run it to get the TARGET firebase token:
- Grab the value of
FB_SERVER_KEY
, that can be found accessing https://console.firebase.google.com, at the configurations section (step by step tutorial); - Run:
FB_SERVER_KEY="your firebase server key" TARGET="the device's firebase token" php server-side/notify.php
From the main page, it's possible to define the parameters, test locally and retrieve the code to use in the server.