Page MenuHomePhabricator

Refactor PhoneGap app so it can be run in browser and ported to other HTML/JS app stacks
Closed, ResolvedPublic

Description

PhoneGap itself is a kind of shim to make our 'insides' mostly pure HTML, which is super nice! But for other platforms it might be nice to be able to drop a few PhoneGap-specific dependencies even further.

This could be useful for having an app that runs natively in Chrome OS, WebOS (though there is a PhoneGap frontend), Mozilla's WebAPI / Boot2Gecko stuff, and whatever else might be coming down the pipe.

Another obvious target is running it within a regular browser for faster local iteration. :)


Version: --
Severity: enhancement

Details

Reference
bz31980

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:56 PM
bzimport set Reference to bz31980.

Pull request:
https://github.com/nitobi/Wikipedia/pull/49

With a little more refactoring, if we don't detect Android or iOS platform we can instead target a generic browser control (assuming permissions allow).

Can load up the index.html in Chrome (started with --disable-web-security -- don't do any real browsing in this mode!!!!) and it successfully loads articles and does searches. If you load in a regular browser mode things will die out with permission errors (can't reach the search on XHR, can't manipulate iframe contents).

As with the iOS app mode, there's currently no menu so back/forward/bookmark/history/near me are unavailable.