Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Chromeless Firefox Mobile for Android Development

128 views
Skip to first unread message

Thorsten Karge

unread,
Jun 29, 2012, 12:09:59 PM6/29/12
to
Had in recent years repeatedly installed Firefox for Android and hoped to replace the default browser with it. But it could not convince me to. That has changed with your last release. A huge leap. Thank you!

Have you ever considered a chromeless version of firefox mobile for developing native android apps? Sure, it would be a total overhead to install the entire fox with every app...perhaps this could be improved through a clever packaging.
And this even may collides with your idea of ​​the open web and your ambitions to establish a firefox app market.

But it would be so great to use the wealth of new features in native apps. Webview is just sad.

Paul [sabret00the]

unread,
Jul 2, 2012, 4:26:10 PM7/2/12
to
While I'm not sure how much of a good idea packaging Firefox would be. It would definitely be beneficial to the open source community if the platform code was used to build apps on top in the same way that is done with desktop Firefox.

data...@gmail.com

unread,
Jul 8, 2012, 2:15:14 PM7/8/12
to
This sounds related

https://bugzilla.mozilla.org/show_bug.cgi?id=740586

It'd be great, if someone could point us some examples or docs on how to test the work done in that ticket :)

Matt Brubeck

unread,
Jul 9, 2012, 2:08:16 PM7/9/12
to data...@gmail.com
You can start testing this by using Firefox for Android to install apps
from https://marketplace-dev.allizom.org/. It's still a bit rough but
it works, and we'll be adding more polish soon.

data...@gmail.com

unread,
Jul 9, 2012, 5:03:06 PM7/9/12
to
> You can start testing this by using Firefox for Android to install apps
> from https://marketplace-dev.allizom.org/. It's still a bit rough but
> it works, and we'll be adding more polish soon.

Awesome. Thanks for the preview.

Mark Finkle

unread,
Jul 10, 2012, 12:10:38 AM7/10/12
to data...@gmail.com
Just be sure to use the Nightly version of Firefox for Android. The
WebApps feature is not yet 100% ready for primetime, like Matt said, so
we could be disabling it on other channels (Aurora and Beta).

If you do test it, please file bugs when you find them.

C. Scott Ananian

unread,
Sep 19, 2012, 9:42:58 PM9/19/12
to data...@gmail.com
I've been doing a lot of related work recently, and in fact just shipped an Firefox/Android based education app to an offline deployment in Ethiopia yesterday.

Here are the major bugs/missing features I've found:

* AppCache is really buggy. Ogg audio doesn't play from appcache (bug 791017) and most video won't play either (bug 741351, bug 784329). The AppCache.swapCache() method is broken (bug 769171). On FF/Mobile, the cache also doesn't appear to update correctly when the manifest changes (still working on isolating a test case).

* There's no good way to install a webapp without connectivity (bug 790456). I've resorted to copying profile directories around using adb, but it's evil.
* Webapp installation isn't scriptable by Android intents, either (bug 790457) so it's hard to automate installation (for classroom purposes, for example).

* The size of the offline cache and of local storage is fixed, and very small for Firefox/Android. This will impose a strict limit on the size of your offline webapp and of the size of the data it can manipulate. These limits should really be specified by the webapp's manifest. (The user should be able to install a 50M webapp if they want to!) (bug 792651)

* No integration of add-ons and webapps (bug 790461). This makes "phonegap"-like extended functionality for webapps needlessly difficult. I've resorted to manually hacking the prefs.js for the installed webapp to re-enable extensions, and I've written an add-on-to-JNI bridge which allows your addon to access all of the Android SDK (see https://github.com/cscott/intent-addon for an example). However, the Activity Context isn't properly exposed to Add-On authors (bug 790452).

* No splash screen support (bug 604728). Your app will look pretty ugly while it is starting up.

* Versioning is problematic if you use AppCache -- AppCache only checks for new versions when the page is "loaded" or "reloaded", and there's no way to control that on an Android webapp. Android Jelly Bean allows you to close apps easily (good) but it caches "closed" apps (oops!) so even if you close the app and relaunch it there's no guarantee you'll get reloaded.

That said, even with those issues webapps worked well enough for me to ship some code to Ethiopia this week, and the mozilla webapp stuff is IMO much better than PhoneGap on Android. Video and WebGL work, for example!
--scott
0 new messages