Cordova apps run in a webview container, which is not the same as the platform's built-in browser. Many "supported" features don't work. So use this app to test your web pages.
git clone https://github.com/BigstickCarpet/cordova-test-app.git
This installs a local instance of Cordova. You can run any cordova command using npm run cordova
.
npm install
Install whatever Cordova platforms and plugins you want to use.
npm run cordova -- platform add browser
npm run cordova -- platform add ios
npm run cordova -- platform add android
npm run cordova -- platform add windows
npm run cordova -- plugin add org.apache.cordova.device
The package.json
file includes several npm scripts to make things easy. Run one of these:
Command | Description |
---|---|
npm start |
Runs cordova serve , so you can test the app in a desktop web browser |
npm run ios |
Runs the app in the iOS emulator |
npm run android |
Runs the app in the Android emulator |
npm run windows |
Runs the app in the Windows 8 emulator |
npm run winphone |
Runs the app in the Windows Phone 8 emulator |
Cordova Test App is 100% free and open-source, under the MIT license. Use it however you want.