DEPRECATED: The demo app for the NativeScript Firebase plugin is now inlined in the plugin repo. 🚀
This app is built with the NativeScript CLI. Once you have the CLI installed, start by cloning this repo:
$ git clone https://github.com/EddyVerbruggen/nativescript-plugin-firebase-demo
$ cd nativescript-plugin-firebase-demo
$ cd Firebase
Next, install the app's iOS and Android runtimes, as well as the app's npm dependencies:
$ tns install
- Copy
app/App_Resources/Android/google-services.json
toplatforms/android/google-services.json
or you'll run into the error "FirebaseApp with name [DEFAULT] doesn't exist." - Open
platforms/android/build.gradle
and do these things.
Open node_modules/nativescript-plugin-firebase/platforms/android/include.gradle
and
node_modules/nativescript-plugin-firebase/platforms/ios/Podfile
and uncomment the relevant lines.
Now you can use the run
command to run the demo app on iOS:
$ tns run ios --emulator
$ tns emulate ios --device iPhone-6s
.. or on Android
$ tns run android --emulator
$ tns emulate android --geny "Nexus 6_23"