是否可以在Windows 8应用程序中使用Firebase? [英] Is it possible to use Firebase with a Windows 8 app?
问题描述
我希望在使用WinJS制作的Windows 8应用程序中使用Firebase.这是我尝试写入Firebase根目录的方法:
I'm hoping to use Firebase in my Windows 8 app made using WinJS. Here is how I am trying to write to the root of my Firebase:
var dataRef = new Firebase("https://<firbaseName>.firebaseio.com");
dataRef.set("I am now writing data into Firebase!");
但是,这在JavaScript控制台中给了我以下错误:
However, this gives me the following error in the JavaScript console:
Can’t load <https://<firebaseName>.firebaseio.com/.lp?start=t&ser=66595697&cb=2&v=5>. An app can’t load remote web content in the local context.
我尝试将https://[firebaseName] .firebaseio.com/*添加到应用清单中的Content URI,但这似乎不是解决方案.谁知道Firebase是否可以在Windows 8应用程序中运行?
I've tried to add https://[firebaseName].firebaseio.com/* to my Content URIs in my app manifest but that doesn't seem to be the solution. Does anyone know if it's possible to get Firebase working inside of a Windows 8 app?
推荐答案
您应该能够在Windows 8(WinJS)应用程序中本地使用firebase.js.只需下载一份副本,然后将其嵌入您的应用中即可.如果您遇到任何问题,请发送电子邮件至support@firebase.com.
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.
这篇关于是否可以在Windows 8应用程序中使用Firebase?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!