Skip to content

Instantly share code, notes, and snippets.

@p1nox
Last active September 1, 2016 01:00
Show Gist options
  • Save p1nox/8f4f8524c78215cae670 to your computer and use it in GitHub Desktop.
Save p1nox/8f4f8524c78215cae670 to your computer and use it in GitHub Desktop.
Ionic/PhoneGap/Cordova notes

Install jdk7 jdk8 and android studio, then:

npm install -g cordova ionic bower

npm install
bower install

# in case first time
ionic platform add android
ionic platform add ios

ionic state restore

ionic serve       # run on local browser
ionic run android # run on connected android phone

ionic plugin add com.rjfun.cordova.sms
ionic plugin add cordova-sqlite-storage

Older android versions

Android 4.0.3 (API 15)

    # config.xml
    <preference name="android-minSdkVersion" value="15"/>

Sources

Ignore

.DS_Store
www/lib
*.log

# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

node_modules/
platforms/
plugins/

Others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment