• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PabloYglesias/Firefox-OS-Boilerplate-App-Template: App Boilerplate for Firefox O ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

PabloYglesias/Firefox-OS-Boilerplate-App-Template

开源软件地址:

https://github.com/PabloYglesias/Firefox-OS-Boilerplate-App-Template

开源编程语言:

JavaScript 98.0%

开源软件介绍:

Firefox OS Boilerplate App

This is a demo app for Firefox OS, loosely based on (Firefox-OS-Boilerplate-App https://github.com/robnyman), meant to act as a simple boilerplate for getting started with apps for Firefox OS.

It will give you a button to install it in Firefox OS - on a device, in the Firefox OS Simulator (Simulator Introduction) and in certain Nightly versions of Firefox.

It is a showcase of Web Activities, WebAPI usage, adding offline support and more in Firefox OS!

To add your own icon, I recommend using the Firefox OS app icons style guide.

Preview

To test/install this app, download the code and run it on a web server, or navigate to Firefox OS Boilerplate App in Firefox on a device or in the Firefox OS Simulator.

installPackage - Packaged Apps

It also supports installPackage to install a ZIP version of your app with all files packaged. This also gives you access to a few extra APIs, due to a higher security clearance. The repository contains two sample things to make this possible:

  • A mini manifest - the package.manifest file
  • A ZIP version of the app

To enable this, please go to the js/base.js file and change two lines, as described in the comments. Basically, these are the steps needed for packaged apps:

  • Alter the mini manifest (package.manifest) and make sure the "package_path" is absolute
  • ZIP all app content (not containing folder), including regular manifest
  • Developer name and info HAS to match between mini manifest and the regular one
  • Have an installPackage call in JavaScript pointing to the mini manifest
  • Turn on Developer Mode in the Firefox OS Simulator (Settings > Device Information > More Information > Developer > Developer mode)
  • Add type property (e.g." type" : "privileged") in the manifest if you want access to certain APIs (just asking for permissions isn't sufficient)



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap