robnyman / firefox-os-boilerplate-app Goto Github PK
View Code? Open in Web Editor NEWCreating Firefox OS apps
Creating Firefox OS apps
I'd love to get a basic i18n layer in this boilerplate app, just to get me started with translating apps.
It's still unclear to me what is the best practice when it comes to i18n-ing Firefox OS apps, if any.
I've playing with this boilerplate app and just ziped my version. The problem is that my app got rejected and I just can't fix it: when user try to install it through FFOS Marketplace, the message "App install error: MANIFEST_URL_ERROR" appears.
Any tip? This sample app should be facing the same problem.
If you install the app with the plus button the path of the app it's wrong.
The url is http://robnyman.github.io/index.html, i think to add a check if hosted or packaged and load the corect manifest.
Fix apps so I can up grade
Hi Robert, I just added the deviceorientation test to the app, here is a patch if you want to check http://d.pr/f/r689
Seems like the icons style guide page was moved.
I get an error when attempting to install this app on the latest Firefox OS build. The error is:
Install failed
:INVALID_SECURITY_LEVEL
I'm trying install by clicking the + icon from the website:
http://robnyman.github.com/Firefox-OS-Boilerplate-App/
I'm not sure if this issue shows up when trying to install in other versions of Firefox OS.
This issue is similar to issue # 64.
When I click on Share URL
and choose Twitter
in the list, I dont see Twitter app actually getting the URL. Below is the snapshot of what I am getting.
I didnt change the boilerplate code at all initially but later I tried setting the type
of data
to url
and then the Twitter app wasnt listed in the list that appears after clicking on Share URL
.
Also, there is no error in the console.
This is happening in Flame device with Firefox OS v2.0.
https://github.com/mozilla/fireplace/wiki/Web-Activities#marketplace-app-rating
In this url there are few example about web activity of the marketplace app. I think that the examples are a good idea in this boilerpalte for promote the apps.
Currently there is no way for the user to return to the app after clicking external links while using the Boilerplate on the phone or in the simulator.
Possible solutions:
Add chrome navigation to manifest:
https://developer.mozilla.org/en-US/Apps/Developing/Manifest#chrome
(only works in >= 1.1)
Launch link via browser instead of in-app
(If possible.)
Pick an image and share it, select "Wallpaper", the preview window is empty.
The l10n.js librabry is updated:
http://informationisart.com/26/
It's retro compatible.
Is possible update the version of the boilerplate?
In Firefox OS 1.2 Gaia have a flat graphic and in the boilerpalte exist only the style of older versions.Iit's possible add a second folder with the new graphic? So the developer can choose the graphic or add a code that check the Firefox OS version and load the correct Gaia style.
Error indicated below when selecting Add Hosted App menu option to install application.
The webapp manifest isn't a valid JSON file: SyntaxError: JSON.parse: unexpected character at: http://robnyman.github.io/Firefox-OS-Boilerplate-App/
Steps:
Firefox OS Simulator 3.0.1 returns
File not found
Firefox can't find the file at app://9ae0db53-4940-46e4-a500-f20cb7aba03b/app/."Content JS ERROR at app://homescreen.gaiamobile.org/js/page.js:161 in icon_fetchImageData: Got an exception when trying to load icon "app://9ae0db53-4940-46e4-a500-f20cb7aba03b/app/images/logo64.png", falling back to cached icon. Exception is: [Exception... "File error: Not found" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: app://homescreen.gaiamobile.org/js/page.js :: icon_fetchImageData :: line 158" data: no]
Firefox OS Simulator Dashboard errors:
Packaged App
Validation Result: WARNINGS (0 errors and 1 warnings)
Warnings: Denied permission 'bluetooth' for type 'privileged'.Hosted App
Validation Result: INVALID (1 errors and 0 warnings)
Errors: Hosted App can't be type 'privileged'.
Pushing on device packaged app, shows alert "App installed", but actually it did not install it and app icon does not shows up on screen. And on pushing hosted app, nothing happens at all.
The manifest.appcache additions
"type": "privileged",
"permissions": {
"bluetooth": {}
}
I tried also to add also CSP header for index.php, but it did not help ether
header("Content-Security-Policy: default-src *; script-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'");
Any solution or reported bug for it?
We completed localizing the app in bn-BD locale. But it is not added in this repo. Why it's not added? Do we need to do some more things?
In webapp.js:121 "familyName" should be instead "lastName", as for the latest Firefox OS Simulator.
Note: The strange thing is, that inside internally it somehow calls it familyName, even though it expects a property called "lastName". As seen in contacts_form.js:254 of gaia: "familyName.value = params.lastName"
I went to
https://marketplace.firefox.com/developers/validator
and entered your manifest:
http://robnyman.github.io/Firefox-OS-Boilerplate-App/manifest.webapp
which resulted in:
Your app failed validation with 1 error and 2 message(s).
launch_path
must be a path relative to app's origin.
60x60px icon should be provided for Firefox OS.
App name may be truncated on Firefox OS devices.
I'm running Mozilla Firefox 23.0 on Ubuntu 13.04. Clicking "the + button in the top right corner to install this app" gave me a plain notification saying, roughly, "Firefox OS Boilerplate was installed" (yay!), and I can now launch "Firefox OS Boilerplate App" from the Unity launcher (yay!), but the new window that appears shows
404
There isn't a GitHub Page here.
the same error page I get if I visit https://bad.github.com/
I realize this is probably various limitations of web apps/Firefox/Ubuntu rather than your fine demo app, but it feels close to working 😄
It's possible a NFC example?
I've a Flame but this page https://wiki.mozilla.org/WebAPI/WebNFC it's very complicate.
Hi,
I tested the template but the AlarmAPI buttom doesn't work. All looks correct, any idea? I tested on a Unagi device.
Regards
The webapp manifest isn't a valid JSON file: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data at: http://localhost:63342/Firefox-OS-Boilerplate-App-gh-pages/index.html
fxosRate is a Library to help the promotion of your Firefox Marketplace apps by encouraging application users to rate the application. The library decides when it's the best moment to ask users to rate the app based on a set of parameters.
Also support l0n.js
https://github.com/dcoloma/fxosRate
Maybe is an useful library to integrate in the boilerplate.
Cancelling Pick Image gives a "Can't view the image!" dialogue. Compare with Pick Anything which simply aborts as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.