# cordova-template

> Cordova template

Latest version **0.0.3** (published 2016-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-template
pnpm add cordova-template
yarn add cordova-template
bun add cordova-template
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-03-23 |
| First published | 2016-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonas Colmsjö |
| Maintainers | colmsjo |
| Keywords | Cordova, template |

## Links

- npm: https://www.npmjs.com/package/cordova-template
- Repository: https://github.com/gizur/cordova-template
- Homepage: https://github.com/gizur/cordova-template#readme
- Issues: https://github.com/gizur/cordova-template/issues
- npm.io page: https://npm.io/package/cordova-template

## Dependencies (1)

- [simple-logserver](https://npm.io/package/simple-logserver.md) *

## Recent versions

- 0.0.3 (latest) — 2016-03-23
- 0.0.2 — 2016-03-18
- 0.0.1 — 2016-03-18

## README

Gizurs Cordova template
=======================

Has local and remote logging configured.


Pre-requisites
--------------


NodeJS and bower are used in addition to Cordova.


Setup
----

Install dependencies:

```
npm install
cd www; bower install; cd ..
cordova plugin add cordova-plugin-console
cordova plugin add cordova-plugin-device
cordova plugin add cordova-plugin-splashscreen
```

Add the platforms you are using (it is tested on ios and android): `cordova platform add ios|android|browser`


Run the app
-----------

Start the local logging server: `node node_modules/simple-logserver/log-server.js`
Test that the logging works: `curl -d 'Hi there' http://[IP]:8126`

Create `www/js/config.js` using the template. Update with the IP-address of the logging server.


iOS:

```
cordova run ios --list
cordova run ios --target"SELECT ONE FROM THE LIST"
```


Android:

```
cordova run ios --list
cordova run ios --target"SELECT ONE FROM THE LIST"
```

Check that the log server shows the start log messages. Also test to put app in the background and
make sure that onPause and onResume is shown in the log. The iOS system log is available in the Simulator
under Debug and `adb logcat` can be used in Android.


Troubleshooting
--------------

1. Delete the app from the device if `config.xml` has been changed. iOS apps just dies sometimes 
when `config.xml` has changed (even if the android part was changed).

---
_Source: https://npm.io/package/cordova-template · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
