Nativescript-plugin-firebase: cannot initialize w NEW vue-cli-template iOS

Created on 14 Sep 2018  路  6Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

hey eddy - this rad plugin works great on android but not ios unfortunately (with NEW vue-cli-template that is). the next branch of the vue-cli-template was recently merged with the master and it appears to structure things a little differently. i've tried a bunch of configurations regarding requiring the plugin before vue starts and initializing it afterwards as the readme indicates, but no luck... would a simple example as you did before w the old vue-cli be possible?

Most helpful comment

@spencercap I managed to get it running today using the new Vue template. So the difference from your linked repo is that I am running the firebase.init() inside of my created() method on the main Vue instance, also remember to rm -rf your platforms folder.

Hope it helps!

All 6 comments

to see the behavior or tinker around, you can clone this repo, which is simply the new vue-cli-template after running tns plugin add nativescript-plugin-firebase and placing the .json and .plist files appropriately.

running tns debug android --bundle shows firebase.init done in the console
but running tns debug ios --bundle does not show firebase.init done in the console

Thanks for the sample! I hope to find some time to play with it soon.

@spencercap I managed to get it running today using the new Vue template. So the difference from your linked repo is that I am running the firebase.init() inside of my created() method on the main Vue instance, also remember to rm -rf your platforms folder.

Hope it helps!

Thanks all!

I've also been tinkering with the 2.0 template this weekend and, MAN, it's so much easier to use with this plugin. It's as simple as the other frameworks now actually. Here's the app I'm building using Firestore, Cloud Functions, and the NativeScript-Vue 2.0 template.

I imagine that the new 2.0 template will make everything easier, also for awesome plugin developers as yourself @EddyVerbruggen - thanks for all your hard work and contributions to the community 馃檹 !!

agreed 馃檹馃徏thank you very very much for all the significant contributions @EddyVerbruggen
i'll be tinkering with this very soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vchimev picture vchimev  路  3Comments

ButterMeWaffle picture ButterMeWaffle  路  4Comments

dopefatimah picture dopefatimah  路  3Comments

tsili852 picture tsili852  路  3Comments

EddyVerbruggen picture EddyVerbruggen  路  3Comments