[GH-ISSUE #173] sent_to payload keyword always present and empty #132

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

Originally created by @redbullpeter on GitHub (May 31, 2014).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/173

Independent of whether I include sent_to as a payload keyword in the Sync URL configuration, the server side script always shows sent_to as parameter and with no value. When I do a print_r($_REQUEST, true) the PHP script shows that sent_to is being passed as a parameter and is blank. Adding or removing sent_to as a payload keyword has no effect.

Phone details are:
Make: Sony Ericsson
Model: LT15i
Android Ver: 2.3.4

Make: Micromax
Model: A27
Android Ver: 2.3.5

Originally created by @redbullpeter on GitHub (May 31, 2014). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/173 Independent of whether I include sent_to as a payload keyword in the Sync URL configuration, the server side script always shows sent_to as parameter and with no value. When I do a print_r($_REQUEST, true) the PHP script shows that sent_to is being passed as a parameter and is blank. Adding or removing sent_to as a payload keyword has no effect. Phone details are: Make: Sony Ericsson Model: LT15i Android Ver: 2.3.4 Make: Micromax Model: A27 Android Ver: 2.3.5
kerem closed this issue 2026-02-28 01:23:20 +03:00
Author
Owner

@devlogy commented on GitHub (May 31, 2014):

Hello,

I confirm this issue.

Regards,

Cesar

<!-- gh-comment-id:44757246 --> @devlogy commented on GitHub (May 31, 2014): Hello, I confirm this issue. Regards, Cesar
Author
Owner

@redbullpeter commented on GitHub (Jun 22, 2014):

The issue still exists on v2.6

<!-- gh-comment-id:46774831 --> @redbullpeter commented on GitHub (Jun 22, 2014): The issue still exists on v2.6
Author
Owner

@rafalsliwinski commented on GitHub (Jul 8, 2014):

Hello,

I looked into this issue and I found what was the problem. Function getLine1Number() from class TelephonyManager which is used for it don't work if your phone number is not register in your mobile. Only solution I can think of is to add option to set or change this number in settings. @eyedol What do you think about it?

<!-- gh-comment-id:48291618 --> @rafalsliwinski commented on GitHub (Jul 8, 2014): Hello, I looked into this issue and I found what was the problem. Function getLine1Number() from class TelephonyManager which is used for it don't work if your phone number is not register in your mobile. Only solution I can think of is to add option to set or change this number in settings. @eyedol What do you think about it?
Author
Owner

@eyedol commented on GitHub (Jul 9, 2014):

@rafalsliwinski yes getLine1Number() only gets the phone number if it's registered on the SIM card. That could work but we need to verify the number the user enters. Like send a code as SMS ? Lot of work I think.

I'm thinking we drop support for sent_to as unique_id which is manually set on the phone can be used to serve the same purpose sent_to was serving.

<!-- gh-comment-id:48442974 --> @eyedol commented on GitHub (Jul 9, 2014): @rafalsliwinski yes `getLine1Number()` only gets the phone number if it's registered on the SIM card. That could work but we need to verify the number the user enters. Like send a code as SMS ? Lot of work I think. I'm thinking we drop support for `sent_to` as `unique_id` which is manually set on the phone can be used to serve the same purpose `sent_to` was serving.
Author
Owner

@eyedol commented on GitHub (Jul 9, 2014):

Let's just replace the value returned by getLine1Number with the unique_id value if getLine1Number returns NULL or empty string. Over time we will depreciate the sent_to variable. And document this change in website-src. Specifically under developers page.

<!-- gh-comment-id:48448580 --> @eyedol commented on GitHub (Jul 9, 2014): Let's just replace the value returned by `getLine1Number` with the `unique_id` value if `getLine1Number` returns `NULL` or empty string. Over time we will depreciate the `sent_to` variable. And document this change in `website-src`. Specifically under developers page.
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#132
No description provided.