Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Text message is sent but callbacks fail #11

Closed
greaterking opened this issue Mar 10, 2014 · 8 comments
Closed

Text message is sent but callbacks fail #11

greaterking opened this issue Mar 10, 2014 · 8 comments
Labels

Comments

@greaterking
Copy link

Everytime I call this in ios I get:
Error: TypeError: 'undefined' is not an object in undefined at line 0

I use the same example as illustrated in the documentation. The success or failure call backs never get called.

Heres what I have:

var _success = function () { alert('Message sent successfully'); };
var _error = function () { alert('Message sent successfully'); };
sms.send('9546467923', tMessage, '', _success, _error);

I'm on Phonegap 3.4 ios6

@agarrharr
Copy link
Owner

Thanks for finding that. I'll look into it. Although I don't know iOS or Android, so hopefully it's a problem with the javascript.

@agarrharr agarrharr added the bug label Mar 10, 2014
@greaterking
Copy link
Author

Have you run into this with iOS PhoneGap 3.4 was released last week so maybe there is a conflict that is silently causing the error.

@agarrharr
Copy link
Owner

I actually have never used the callback functions to do anything. So, sorry
about that... And I'm still on phonegap 3.3.
On Mar 10, 2014 1:30 PM, "Ralph" notifications@github.com wrote:

Have you run into this with iOS PhoneGap 3.4 was release last week so
maybe there is a conflict that is silently causing the error.

Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-37223858
.

@greaterking
Copy link
Author

ok got ya...keep me posted. Unfortunately for me it an app breaking issue since the success callback fails I can't run the next steps in the app logic on ios.

@jos3000
Copy link

jos3000 commented Mar 11, 2014

Callbacks work for me on Android, but not iOS - I too need them for my application logic.

@greaterking
Copy link
Author

any luck on this? I'm going to use separate plugins for SMS for the time being.

@agarrharr
Copy link
Owner

I haven't had time to look at it yet unfortunately.

@agarrharr
Copy link
Owner

This should be fixed now in this commit: a16ee46

It turned out to be an issue with the native iOS code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants