Я использую плагин Cordova плагин добавить Cordova-SMS-плагин для отправки смс.При использовании намерения пусто intent:''
.это не отправляет сообщение.Но inent:'INTENT'
работает нормально.
sendSMS() {
this.message = "ahmad send message";
var options = {
android: {
intent: ""
}
}
console.log("send sms function");
this.sms.hasPermission().then(() => {
console.log("permission done ");
this.sms.send("923224130929", this.message, options)
.then(() => {
let toast = this.toastCtrl.create({
message: 'Message send successfully',
duration: 3000
});
toast.present();
}, () => {
let toast = this.toastCtrl.create({
message: 'Failure',
duration: 3000
});
toast.present();
});
});
}