Got a strange problem with my app. I have a view where the user can tap any one of three buttons to either send an email to a person, send a text or call them. The links are:
The Email and Call links work perfectly. However, when I click to send an SMS, instead of opening the SMS app, I am noticing the following error in XCode:
Failed to load webpage with error: The URL can’t be shown
Bump for todays crowd… no one else experienced an issue like this ??
I should also clarify that I made a mistake when retyping in my lines of code above. The href is actually ng-href because of the Angular variables used within. i.e
I was debating using the SMS pluging, but really all I wanted my user to do was press a button to load up the SMS app with the recipients number all preloaded, so that they could type their own message in there. Don’t need to auto send in the background or anything, so I thought the plugin would be overkill.
Having said that, can the plugin just open the SMS app and wait for the user to do whatever they want in there?
i think so. you can just pass empty body that should leave the sms-text blank.
Strange i tested this with my android… and i thought this would work there too… but nothing.
Bumping again for the evening crowd - hopefully someone out there can shed some light on this peculiarity. If @bengetler is reporting the same thing in Android, then could this be an issue with Cordova? Any other security settings we might have missed in config.xml perhaps?
I’m experiencing this issue too. Mailto and Tel are working fine. iOS 8.1.3 (latest as of this post). Using ng-href, no telephone number, and pre-filled body param.
Couldn’t get any answers about this I am afraid - nothing in the Apple discussion area, nor StackOverflow about this.
I ended up using the Cordova SMS plugin to activate the SMS app on both platforms, which works for me now even though it is a bit of overkill for what I want.