简体   繁体   English

我可以在开发firefox Os应用程序时使用indexedDB

[英]can i use indexedDB in developing firefox Os applications

I made an app for firefox-os which uses login functionality. 我为firefox-os制作了一个使用登录功能的应用程序。 I used indexedDB for local storage of username and password for future references. 我使用indexedDB本地存储用户名和密码以供将来参考。 (Github Login) (Github登录)

But my app got rejected from Firefox marketplace as they say that they can't login on their phone keon and unagi . 但是我的应用程序得到了从Firefox的市场,因为他们说,他们不能在自己的手机登录拒绝keonunagi I have tested my app on Firefox Simulator . 我在Firefox Simulator上测试了我的应用程序。 I'm able to login as well with my Github account . 我也可以使用我的Github account登录。

Does indexedDB work in firefox-os smartphone as mentioned above? indexedDB在firefox-os智能手机上工作吗? It's working fine in Firefox Simulator though. 它在Firefox模拟器中运行良好。

Please help me. 请帮我。
Thanks 谢谢

I don't think the error stems from any differences in the indexedDB code. 我不认为错误源于indexedDB代码的任何差异。

I would recommend trying to debug the app on an actual Firefox OS device - if you can't afford one, I'm pretty sure your local mozilla community would help you out there, by letting you use one of their devices for testing purposes - until you manage to work out the kinks and find the root cause to the problem. 我建议尝试在实际的Firefox OS设备上调试应用程序 - 如果你负担不起,我很确定你的本地mozilla社区会帮助你,让你使用他们的设备进行测试 - 直到你设法弄清楚扭结并找到问题的根本原因。

Unfortunately testing the app on a real device sometimes can not be avoided, as every simulated environment has its limitations. 不幸的是,有时无法避免在真实设备上测试应用程序,因为每个模拟环境都有其局限性。

My other advice would be, that you should ask the Firefox OS app developer community. 我的另一个建议是,你应该问问Firefox OS app开发者社区。 If you have the app source code uploaded online somewhere (eg on GitHub), you should drop a mail on the Mozilla Webapps Developer mailing list and ask people to have a look at your app, test it on a real device - maybe they can help you assess the problem. 如果您在某个地方(例如在GitHub上)上传了应用程序源代码,您应该在Mozilla Webapps Developer邮件列表上删除邮件,并要求人们查看您的应用程序,在真实设备上进行测试 - 也许他们可以提供帮助你评估问题。

IndexedDB is available on all Firefox versions including the one in Firefox OS. IndexedDB适用于所有Firefox版本,包括Firefox OS中的版本。 In fact, many of the built-in app use it. 事实上,许多内置应用程序都使用它。

I know that because I am one of the developers :) 我知道因为我是开发人员之一:)

I would suggest you test your app with localhost server on desktop Firefox, where the debug tool is available; 我建议您使用桌面Firefox上的localhost服务器测试您的应用程序,其中调试工具可用; it would be much easier than blindly try things out in the simulator. 它比在模拟器中盲目尝试更容易。 That's actually what we do to :-/ only the UI and the layout matters in the simulator environment. 这实际上是我们要做的: - /只有UI和布局在模拟器环境中很重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM