I have to text several of my contacts.
At the time of the permission request the application crashes completely. Once the application is restarted, the sms are sent. I think the problem is that the application does not wait for confirmation of permission. The problem is with Android.
sms.contacts.forEach(async contact => {
try {
// Send sms
await this.sms.send(contact.phoneNumbers[0].value, this.messageText)
} catch (error) {
this.errorsMsg.push(error)
this.isOk = false
}
})
Somebody can help me ?