Post

Porting JamendoFM to FirefoxOS

I just got a new FirefoxOS developer preview phone, so my next step was to make a port for FireFoxOS. It was pretty similar to porting to tizen. I only had to make a manifest file.

Creating the application manifest file

The file’s name is manifest.webapp, and creating it was pretty easy. I justcopy&pasted the example manifest file from firefoxOS tutorials, and change all the relevan fields.
Here’s how my manifest looks like:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "name": "JamendoFM",
  "description": "Jamendo radio client for mobile",
  "launch_path": "/index.html",
  "icons": {
    "60": "/img/icon-60.png",
    "128": "/img/icon-128.png"
  },
  "developer": {
    "name": "Antti",
    "url": "http://summeli.fi"
  },
  "permissions": {
    "audio-channel-content":{"description":"Use the audio channel for the music player"}
 },
  "default_locale": "en"
}

Running JamendoFM under Lockscreen

The coolest thing about Firefox OS is that after settings the permission “audio-channel-content” the app runs music even under the lockscreen. This is not (yet) possible on Tizen, or any other HTML5 frameworks.

jQueryMobile performance

The cool thing is that the jQueryMobile works really well on firefoxOS! The animations are pretty smooth(no where near 60fps though), and there are no artifacts caused by using them, so they’re OK.

This post is licensed under CC BY 4.0 by the author.