Why can't we use angular-fire2 package for firebase with Nativescript Angular app

安稳与你 提交于 2020-01-07 08:25:26

问题


If nativescript is using javascript engine behind the scene. If I use angular for nativescript development, shouldn't I be able to use angular-fire2 for firebase.

if I could code sharing would be much better with Web and Mob App.


回答1:


https://stackoverflow.com/a/46088932/6408287 contains the answer you are looking for. In short - NativeScript does not implement the node.js modules specification.

Angular-fire2 is made to run inside node.js, whereas mobile firebase sdks are made to run on mobile platforms. Efficiently. Hence the difference in APIs.

Even if you were to somehow run angular-fire2 on NativeScript, chances are it wouldn't execute as well as the mobile sdks would.



来源:https://stackoverflow.com/questions/46088025/why-cant-we-use-angular-fire2-package-for-firebase-with-nativescript-angular-ap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!