Closed rnmhdn closed 3 years ago
This was caused because I updated to ns 7 but was still useing the old version of this plugin. the following solved my issue:
ns plugin remove nativescript-plugin-firebase
ns plugin add @nativescript/firebase
And I import it like so:
import {firebase} from '@nativescript/firebase';
I got this error while building:
package version:
nativescript-plugin-firebase: ^10.5.2,
I solved it by replacing
with
in
node_modules/nativescript-plugin-firebase/messaging/messaging.android.js
I didn't try building on ios yet.