App id is org.nativescript.firebaseexamplevue
, change in nativescript.config.ts
if necessary
- Clone the app and run
npm run setup
- Add
App_Resources/Android/src/google-services.json
- Copy your firebase admin service account credentials to
admin-project/src/credentials.json
- Run the app
ns run android
- Copy the FCM token from console (
JS: FCM Token: YOUR_TOKEN
) - Paste FCM token in
admin-project/src/index.ts
(const TOKEN = 'YOUR_TOKEN';
) - Run
npm run sendmessage
to send a FCM data message (runs index.ts)