Builing a simple messaging app using ionic.
For setting up the development evironment for Ionic Framework follow instructions from README.md.
Objective: To send a mesage through app
To build the Ionic app:
1. In terminal type ionic start ProjectName blank --v3
2. Goto dir ProjectName generated in the above step.
3. Install the following plugins to get sms support:
$ ionic cordova plugin add cordova-sms-plugin $ npm install --save @ionic-native/sms4. Add this SMS plugin to app's NgModule.Edit /src/app/app.module.ts file
add import statement:
import { SMS } from '@ionic-native/sms'. Also add SMS entry in @NgModule Providers section
5. Generally we need to modify these 3 files at /src/pages/home/
- home.html - it contains the GUI part of app.
- home.ts - It has the logic for the app.
- home.sass - It contains the styling part for the app.