问题
I went through the documentation at Native Script but could find a way to use Firebase in Native Script apps. Does any one know how to use Firebase in Native Script apps?
回答1:
Note: This is just a copy and paste of my other answer here.
I've just built nativescript-firebase, which is loads the Firebase Node.js SDK in a way that's compatible with NativeScript.
Also, Eddy Verbruggen has written nativescript-plugin-firebase which uses Firebase's corresponding Android and iOS SDKs.
回答2:
Take a look at nativescript-plugin-firebase plugin which supports iOS and Android.
Plugin features following:
- Realtime Database
- Authentication
- Remote Config
- Cloud Messaging
- Storage
- Crash Reporting
- Analytics
I have been using this plugin for FCM for ios and Android.
Regards.
来源:https://stackoverflow.com/questions/29869747/using-firebase-in-native-script