Firefox OS

编程入门 行业动态 更新时间:2024-10-24 09:16:36
Firefox OS - 导航器中不存在mozMobileConnection(Firefox OS - mozMobileConnection doesn't exist in navigator)

我目前正在开发Firefox OS,我必须处理移动连接,所以我已经阅读了Mozilla的一些教程和文档,我找到了navigator对象和它的一个属性mozMobileConnection 。

不幸的是,这种原则并不存在......我真的不知道为什么。 有人有个主意吗?

提前致谢!

I'm currently developing on Firefox OS and I have to handle mobile connection so I've read some tutorials and the documentation from Mozilla and I found the navigator object and one of its attribute mozMobileConnection.

Unfortunatelly, this atrtibute doesn't exist... I don't really know why. Anybody got an idea?

Thanks in advance!

最满意答案

我修好了!

我没有在我的清单中添加任何权限,我的申请没有“认证”。 我只需要添加以下行:

"type":"certified", "permissions": { "mobileconnection": { "description": "Required for handle mobile connection" } }

我希望这会对别人有所帮助!

I've fixed this !

I didn't add any permission in my manifest and my application wasn't "certified". I'd just have to add these lines :

"type":"certified", "permissions": { "mobileconnection": { "description": "Required for handle mobile connection" } }

I hope this will help others !

更多推荐

本文发布于:2023-08-04 10:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1414072.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Firefox   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!