Is it possible to use Firebase with a Windows 8 app?

半腔热情 提交于 2019-12-06 03:07:35

You should be able to use firebase.js natively in a Windows 8 (WinJS) app. Just download a copy, and embed it with your app. If you run into any issues, please email support@firebase.com.

I wanted to add that is not possible to use the regular firebase.js file alone. (5/5/15 and firebase.js 2.2.4)

The issue is firebase by default tries to do long polling and calls a script from firebase which violates CSP.

Firebase.js has a function called isWindowsStoreApp() but in my tests it doesn't work.

What @Michael Lehenbauer said in an earlier comment triggers it to only use websockets which is local and CSP safe.. Just call

Firebase.INTERNAL.forceWebSockets();

early and it works...

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