import { Component,ViewChild, Renderer } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {Cordova} from "@ionic-native/core";

declare var window: any;
declare let cordova: any;

@IonicPage()
@Component({
    selector: 'page-photo',
    templateUrl: 'photo.html'
})

export class PhotoPage {
    constructor (){
    }
 
    tryPlugin2() {
        let phone: string = "my number here";
        //Set the value of phone
        let message: string = "test";
        //Set the value of message
        let options  = {
            "replaceLineBreaks": false
        };

        //Call the function
        window.sms.send(phone,message,options,(result: any) => {
            console.log("SuccessFully Done...");
        }, (err: any) => {
            console.log("An error has occuered :" + err.code);
        })
    }
}