In my Sencha Touch 2 application I have SMS, phone, email functionalities. These functionalities are working fine in Android, I am able to populate phone numbers, email addresses, and also body content visible to users. I have built it in Phonegap. All functionalities work fine except the SMS functionality, which does not work in iPad. Can anyone tell me why it is not working in iPad? How to achieve the SMS functionality for iPad?
Here is my code:
For SMS:
window.location = 'sms:' + '9035590355' + '?body=' + 'Hi hello';
For phone:
window.location = 'tel:' + '9035590355';
For email:
window.location = 'mailto:' + 'abcd@gmail.com' + '?subject=' + 'Update' + '&body=' + 'I sent you an email';
It can’t work for iOS because the sms:// url scheme doesn’t take body parameter for iOS.
See iPhone URL Schemes
or
See Apple Developer : iPhone URL Schemes
Also, I usually opens the SMS app like this
Could you give it a try on iOS ?