Installing necessary packages

setting up ionic project for wplms

After Ionic serve, you will get a lot of errors as you need to add the relevant plugins for the app.

Following is the list of commands which you need enter one by one via command prompt , make sure all these commands are entered when you’re in the Ionic project directory.

 

npm install ng2dragula dragula save

npm install videogular2 --save

npm install @types/core-js --save-dev

ionic cordova plugin add cordova-plugin-inappbrowser or cordova plugin add cordova-plugin-inappbrowser based on your version of ionic 2/3

npm install --save @ionic-native/in-app-browser

ionic cordova plugin add cordova-plugin-camera or cordova plugin add cordova-plugin-camera based on your version of ionic 2/3

npm install --save @ionic-native/camera

 

npm install --save @ionic-native/facebook

npm install ionic-cache @ionic/storage --save

ionic cordova plugin add cordova-plugin-file-transfer

npm install --save @ionic-native/file-transfer

npm install imgcache.js --save

ionic cordova plugin add cordova-plugin-file-transfer

npm install --save @ionic-native/file-transfer

npm install --save @ionic-native/transfer

ionic cordova plugin add cordova-plugin-file

npm install ionic-cache @ionic/storage --save

npm install chart.js --save

Create a facebook application for facebook login, note the name of the application

ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="491338181212175" --variable APP_NAME="WPLMS Mobile App"

replace : 491338181212175 with your FB app id.

replace WPLMS Mobile App with your app name

use bundle id in FB app: com.vibethemes.wplms

Full tutorial

Google Plus

ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
npm install --save @ionic-native/google-plus

Full tutorial

 


=> For version 2.0 [Released on 27th December 2017]

ionic cordova plugin add cordova-plugin-device
 npm install --save @ionic-native/device
$ ionic cordova plugin add cordova-plugin-inapppurchase
$ npm install --save @ionic-native/in-app-purchase

 

Also you need to place the font files in your app.

open the folder : ionic > Project name > www > assets

download the attachment assets.zip and replace the existing assets folder.

 


** In latest ionic version you will also need to edit the index.html file in the src folder and include a line

<script src=”build/vendor.js”></script>

 

Attachments1

SEE ALL Add a note
YOU
Add your Comment
 
top
Template Design © VibeThemes. All rights reserved.