Skip to content
Advertisement

nativescript-firebase issue to get push token

I implemented the nativescript-firebase (https://github.com/EddyVerbruggen/nativescript-plugin-firebase) plugin in my mobile app. It used to work fine but since I updated to the 11.1.3 version I cannot get the push token. I tried to get back to the 10.6.3 version but it says it is not available anymore when I execute npm install.

Here is what I do in my main.js

JavaScript

This does not log the token but goes into the catch and logs this
Uncomment firebase-messaging in the plugin's include.gradle first

Here is my package.json

JavaScript

Advertisement

Answer

The message points you to the plugin’s include.gradle file, or more specifically,

JavaScript

where you want to uncomment the line as shown below:

JavaScript

I expect if you reinstall the plugin you can answer the prompts so that this will get set for you.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement