[GH-ISSUE #242] Inconsistent results with Message Results API #175

Closed
opened 2026-02-28 01:23:33 +03:00 by kerem · 3 comments
Owner

Originally created by @sorinpohontu on GitHub (Jan 28, 2015).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/242

When using Message Results API, message_result response varies, without a specific match to Developers documentation (http://smssync.ushahidi.com/developers).

  1. sent_result_message is sometimes blank (?)
  2. sent_result_code is -1 or -2 (on Developer page is 0 for success and -1 for error ?)
  3. Strings messages are different from Documentation ("SMSsent" -> "SMSSync Message Sent").

Tested on v2.7.3 with Android: 4.1.1 and 4.2.2.

Please see the JSON responses below (with and without Delivery Notification):

 {"message_result": "[
    {"sent_result_message":"SMS sent","delivered_result_message":"","uuid":"4a4598bd-a6e7-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-2},
    {"sent_result_message":"","delivered_result_message":"","uuid":"4dd4895c-a6e7-11e4-aac1-2a042924705f","sent_result_code":-2,"delivered_result_code":-2},
]"}


{"message_result": "[
    {"sent_result_message":"SMS sent","delivered_result_message":"SMS delivered","uuid":"a421cd7e-a71d-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-1},
    {"sent_result_message":"SMS sent","delivered_result_message":"","uuid":"a45c2ccd-a71d-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-2},
]"}

Have a nice day,
/Sorin

Originally created by @sorinpohontu on GitHub (Jan 28, 2015). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/242 When using Message Results API, message_result response varies, without a specific match to Developers documentation (http://smssync.ushahidi.com/developers). 1. sent_result_message is sometimes blank (?) 2. sent_result_code is -1 or -2 (on Developer page is 0 for success and -1 for error ?) 3. Strings messages are different from Documentation ("SMSsent" -> "SMSSync Message Sent"). Tested on v2.7.3 with Android: 4.1.1 and 4.2.2. Please see the JSON responses below (with and without Delivery Notification): ``` {"message_result": "[ {"sent_result_message":"SMS sent","delivered_result_message":"","uuid":"4a4598bd-a6e7-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-2}, {"sent_result_message":"","delivered_result_message":"","uuid":"4dd4895c-a6e7-11e4-aac1-2a042924705f","sent_result_code":-2,"delivered_result_code":-2}, ]"} {"message_result": "[ {"sent_result_message":"SMS sent","delivered_result_message":"SMS delivered","uuid":"a421cd7e-a71d-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-1}, {"sent_result_message":"SMS sent","delivered_result_message":"","uuid":"a45c2ccd-a71d-11e4-aac1-2a042924705f","sent_result_code":-1,"delivered_result_code":-2}, ]"} ``` Have a nice day, /Sorin
kerem closed this issue 2026-02-28 01:23:33 +03:00
Author
Owner

@ghost commented on GitHub (Feb 3, 2015):

I'm experiencing the same issue: messages are being sent correctly but returning a -1 or -2 sent code. The -1 code is sensible, since that's the Android RESULT_OK code, but the -2 is just the default code assigned in SMSSync which for some reason is not being overridden by the correct code.

<!-- gh-comment-id:72763211 --> @ghost commented on GitHub (Feb 3, 2015): I'm experiencing the same issue: messages are being sent correctly but returning a -1 or -2 sent code. The -1 code is sensible, since that's the Android RESULT_OK code, but the -2 is just the default code assigned in SMSSync which for some reason is not being overridden by the correct code.
Author
Owner

@eyedol commented on GitHub (Mar 3, 2015):

Fixed

<!-- gh-comment-id:76896999 --> @eyedol commented on GitHub (Mar 3, 2015): Fixed
Author
Owner

@sorinpohontu commented on GitHub (Mar 3, 2015):

Great. Thanks :)

<!-- gh-comment-id:76907429 --> @sorinpohontu commented on GitHub (Mar 3, 2015): Great. Thanks :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#175
No description provided.