Mobile/PhoneGap/Web app testing instructions

From mediawiki.org

Wikipedia's new official mobile application is designed to run cross-platform using the PhoneGap framework. As a happy side effect, you can do a lot of testing using mainstream web browsers:

Currently you must use a webkit-based browser such as Safari or Google Chrome, however not all features work.

Additionally, in Chrome currently you must disable security features in the browser which is unsafe, make sure you don't do any regular browsing in this mode! Safari may be safer.


Get source[edit]

$ git clone git://github.com/wikimedia/WikipediaMobile.git

Running[edit]

Start browser[edit]

Open a terminal or command line and type:

Linux

 google-chrome --disable-web-security

Mac OS X

 open -a Safari
  or
 open -a "Google Chrome" --args --disable-web-security

Windows

 chrome.exe --disable-web-security

(check)

Open index.html in Chrome[edit]

  1. Find WikipediaMobile/assets/www/index.html
  2. drag index.html from your file manager into the Chrome window

Notes[edit]

You need to disable security in the browser due to the app's assumptions about being able to load pages from offsite. This means you can't (yet) use it in a regular browser.

Unsupported features at this time:

  • "Nearby"
  • "Share page"
  • "Save page"

The web app version currently uses a toolbar similar to running under iOS; this is different from Android where there's a popup menu for the special Android menu key.

The browser's back/forward buttons will not interact with the app currently; use the ones on the app's toolbar.