Ionic 2 SMS is not working

.ts code is bellow

import { Component } from '@angular/core';
import { NavController,ToastController } from 'ionic-angular';
import { SMS } from '@ionic-native/sms';

  selector: 'page-home',
  templateUrl: 'home.html'
export class HomePage {
number: string = "";
message: string = "";

  constructor(public navCtrl: NavController,public sms: SMS,private toastCtrl: ToastController) {

sendTextMessage() {
    this.sms.send(this.number, this.message).then((result) => {
      let successToast = this.toastCtrl.create({
        message: "Text message sent successfully! :)",
        duration: 3000
    }, (error) => {
      let errorToast = this.toastCtrl.create({
        message: "Text message not sent. :(",
        duration: 3000


HTML code is bellow

<ion-content padding>
      <ion-label stacked>Phone Number</ion-label>
      <ion-input [(ngModel)]="number" type="text"></ion-input>
      <ion-label stacked>Message</ion-label>
      <ion-textarea [(ngModel)]="message"></ion-textarea>
      <button ion-button icon-left clear item-right (click)="sendTextMessage()">
      <ion-icon name="checkmark"></ion-icon>

Not getting any SMS, and bellow dependency for SMS

"@ionic-native/sms": "^4.2.1",
1 Like

Did you resolve this issue. I’ve same issue except that my app crashes when I try to send SMS without intent which is what I want.