Hi there
SMS not sent using the below code.
Can anyone please advise what the problem may be?
or do you perhaps know of a working up to date Ionic3 github example using ionic-native5 ?
sendTest(){
var options: {
replaceLineBreaks: false,
android: {
intent: 'INTENT'
}
}
this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.SEND_SMS).then(() => {
this.sms.send('072xxxxxxx', 'Hello world!', options);
},()=>{
alert('No Permission');
}).catch((err) => {
alert(JSON.stringify(err))
});
}
package.json extract
"@angular/common": "6.1.0",
"@angular/compiler": "6.1.0",
"@angular/compiler-cli": "6.1.0",
"@angular/core": "6.1.0",
"@ionic-native/android-permissions": "^5.1.0",
"@ionic-native/sms": "^5.5.1",
"cordova": {
"plugins": {
"cordova-sms-plugin": {}
}
"platforms": [
"android"
]
}