Skip to content

silverbeauty/watog

Repository files navigation

Watog Ionic Mobile App

Dependencies

  • SQLite
ionic cordova plugin add cordova-sqlite-storage
npm install --save @ionic-native/sqlite
  • Native Storage
ionic cordova plugin add cordova-plugin-nativestorage
npm install --save @ionic-native/native-storage
  • Camera/Photo
ionic cordova plugin add cordova-plugin-camera
npm install --save @ionic-native/camera
  • Image Picker
$ ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="Watog needs to access the photos to upload images."
$ npm install --save @ionic-native/image-picker

  • File Document Viewer

Cordova Plugins

sudo ionic cordova plugin add cordova-plugin-file sudo ionic cordova plugin add cordova-plugin-file-transfer sudo ionic cordova plugin add cordova-plugin-document-viewer ionic cordova plugin add com-sarriaroman-photoviewer

Ionic Native packages

sudo npm install --save @ionic-native/file @ionic-native/document-viewer @ionic-native/file-transfer

sudo ionic cordova plugin add cordova-plugin-nativestorage

How to run

Browser

  • npm start

Android

  • npm run android

iOS

This platform should be added by ionic cordova platform add ios

  • npm run ios

please add it in plist file

<key>NSPhotoLibraryAddUsageDescription</key>
<string>Our application needs permission to write photos...</string>
<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>

Google phone error

npm install --save-prod google-libphonenumber

TextMaskModule

sudo npm i angular2-text-mask --save

Ionic image viewer

npm install --save ionic-img-viewer