Bobby
Posts: 0
Joined: Wed Jun 24, 2015 4:24 pm

SMS problem

Hey Yurii,

I'm using an iPhone 6. Yes, I tested it on an old android phone (HTC Evo 3D), and even texting to just a recipient didn't work for that one. I assumed thats just because it's an old phone. But other than the iPhone 6 and HTC I have not tested on any other device.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

SMS problem

Hello Bobby,

Please try to debug your app remotely https://devcenter.appery.io/documenta..., are there any error?

Bobby
Posts: 0
Joined: Wed Jun 24, 2015 4:24 pm

SMS problem

No there are no errors. It runs cleanly, just does not do what I want. It treats that whole line of code as one string. Doesn't seem to catch the 'body' tag because it is just part of the string and simply appends on the end.

When I run that code and it gets to the alert, is it supposed to say:
smsStr = sms:6235125659?body=text
in one line? Thats what it does and then copies the exact same line into recipients leaving body empty. Like I said, tried many different combinations of using local storage variables, labels, and straight putting it as one string and it does the same thing every time. I'm really confused :/

BananaGator
Posts: 0
Joined: Tue Jun 30, 2015 2:53 am

SMS problem

Apple removed support for the "body" SMS URL variable some time ago. You would need to use a plugin for iOS.

Take a look at Cordova's cross-platform SMS plugin: https://github.com/cordova-sms/cordov...

Bobby
Posts: 0
Joined: Wed Jun 24, 2015 4:24 pm

SMS problem

Alright thanks for this resource! I'll give it a shot. Just out of curiosity though, you're saying iOS stopped supporting 'body', but it still supports the 'phone' and 'sms' urls?

Bobby
Posts: 0
Joined: Wed Jun 24, 2015 4:24 pm

SMS problem

This might be a dumb question, but I need to run that command in the directory containing my cordova project. Since this isn't a project in an IDE or some other file (rather cloud based due to the web based nature of Appery), it's not saved in any directory so I do not know where to run this command. Does anyone understand my problem?
Thanks

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

SMS problem

Hi Bobby --

Yes, please check Apple URL scheme reference here: https://developer.apple.com/library/i...

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

SMS problem

Here you can find our examples showing how to add 3rd party Cordova plugins in Appery.io: https://devcenter.appery.io/documenta...

Return to “Issues”