How to integrate nativescript-plugin-firebase with Nativescript app for push notification

830 Views Asked by At

Hi guyz I am new to Nativescript & I am trying to integrate Firebase with Nativescript but seam to have hit a blocker. I have used nativescript-plugin-firebase to connect to firebase and followed the documentation, but i do not receive any notification on the client (IOS). I have run through all the steps listed in the plugin documentation but dont see any notification, Is there some thing I have to look out for apart from the documentation?

Below are the activities that have been carried out for setting up FCM pushnotification

  1. APN key generated and linked to App created in Firebase account.
  2. GoogleService-Info.plist downloaded and placed in IOS folder.
  3. App capabilities for Remote Notification & Push Notification enabled
  4. Firebase Authentication method is Anonymous
  5. Firebase init triggered and initialized successfully.

after all this Notification from FCM not pushed to client.

1

There are 1 best solutions below

0
On

[SOLVED] When the plugin nativescript-plugin-firebase is installed a set of questions are to be answered to generate the firebase config file. After all the questions are answered a config file is generated firebase.nativescript.json which hols the configuration. Delete all unnecessary details (e.g., firestore, realtimedb, admob, etc) from this file and remove POD files & reinitialize POD, then prepare the platform and finally run your application.

The same will throw error (Socket timeout) when run in android, delete the node_modules, hooks & Platforms folders and update the firebase plugin explicitly. Now running a clean build should resolve the error.