Hello, I have created an app for both iOs and Android where upon speaking two trigger words, the listening app sends a text and then calls to an inputted designated phone contact. The Android version works perfectly. The iOs version also works perfectly but the iOs app emiits a PopUp for each, the text and then the call asking "Do you really want to send the text -or- make the call". Basically, I input the contact info and I spoke the trigger words. So, yes I want to send the text and make the call. So, I have to click the two PopUps then the device sends and calls.
Is there a way to suppress the PopUps in any way? The app is designed for emergencies. So, a dely to anser a popup is not at all good.
Maybe by telling the device to allow auto calls and texts from my app?
Any and all help on this issue will be very welcomed... Thanks :)
You question is quite hard to read; for suggestions on that front, see Quinn’s Top Ten DevForums Tips.
I’m not entirely sure I understand your question properly. I think you’re asking whether it’s possible to make a phone or send an SMS message without user approval. The answer to that is “No, at least not directly.”
This is somewhat of a FAQ, so back in the day we published QA1944 Sending SMS Programmatically that addresses it (at least for the SMS case). Things haven’t changed since then.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"