alexrothenberg
alexrothenberg

Reputation: 184

How can I develop an Apache Cordova/PhoneGap app without a device

When developing a Cordova/PhoneGap app I'd like to be able to develop with Chrome on my laptop without a device. Is there a way to do that?

For example with some sort of "cordova.stubs.js" that simulates the native portion of the API. Of course this is just for my development cycle and after iterating on my laptop for a while I would deploy and test on a real device or with a device emulator.

Thanks Alex

Upvotes: 3

Views: 1320

Answers (4)

arnel marco
arnel marco

Reputation: 1

go to here and you can open it in chrome browser and also you can use this if you have mobile and can debug using weinre

Upvotes: 0

KennyC
KennyC

Reputation: 961

If you're by any chance working on a MacBook, you can use the iPhone Simulator to run your PhoneGap app and then connect to it remotely.

  1. In the iPhone Simulator home screen, tap on Settings > Safari > Advanced. Enable the Web Inspector option.
  2. In your Mac's Safari, click on Develop -> iPhone Simulator -> index.html

    • As far as I know, this only works on iOS 6 and above.

Upvotes: 0

Raul Duran
Raul Duran

Reputation: 548

One fast alternative for simulate in android is: www.genymotion.com

Upvotes: 0

Simon MacDonald
Simon MacDonald

Reputation: 23273

Have you tried the Ripple emulator yet?

http://emulate.phonegap.com/

Upvotes: 8

Related Questions