Getting Started
Emulate PhoneGap
- phonegap.com
- localhost:3000
Emulate a Specific Platform
- phonegap.com?platform=cordova
- phonegap.com?platform=phonegap
Emulate a Specific Platform Version
- phonegap.com?platform=cordova-2.0.0
- phonegap.com?platform=phonegap-1.0.0
About
PhoneGap Emulator
-
The PhoneGap Emulator allows you to test your PhoneGap application
from your desktop browser. PhoneGap's JavaScript APIs are
avaialble using Ripple, so you can subscribe to
deviceready
and even stub responses for your custom plugins.
Requirements
- The PhoneGap Emulator requires two free, third-party tools.
- 1. Google Chrome Browser by Google.
- 2. Ripple Emulation Environment by the BlackBerry HTML Team.
API
Overview
The PhoneGap emulator can be invoked with a web request. The request options are provided as query string parameters and the response will check for all dependencies before opening the Ripple emulator.
Request
- emulate.phonegap.com?url=<url>&platform=<platform>
Parameters
URL
- The
url
is the address of your local or public web app. - The
url
is a required parameter. Examples:
- emulate.phonegap.com?url=phonegap.com
- emulate.phonegap.com?url=phonegap.com
- emulate.phonegap.com?url=phonegap.com/images
Platform
- The
platform
is the environment to emulate. - The
platform
is an optional parameter. Emulates latest version:
- emulate.phonegap.com?url=phonegap.com&platform=cordova
- emulate.phonegap.com?url=phonegap.com&platform=phonegap
Emulates specific version:
- emulate.phonegap.com?url=phonegap.com&platform=cordova-2.0.0
- emulate.phonegap.com?url=phonegap.com&platform=phonegap-1.0.0