Menu

#2 Phone number country code malformed when sending SMS

v1.0 (example)
open
None
9
2016-06-03
2014-10-25
No

The country code notation (e.g. +43 for Austria) is malformed when trying to send an SMS. The plus (+) is ommitted and the sms is sent to 436801234567 when the sms is received from +436801234567.

D/FindMyPhone(29778): Got SMS with secret text +436801234567
D/FindMyPhone(29778): LocationMessageService:onCreate
D/FindMyPhone(29778): Inside LocationMessageService:onStart
D/FindMyPhone(29778): UriData ?destinationAddress=+436801234567
D/FindMyPhone(29778): Startar commandprocessor
D/FindMyPhone(29778): Resetting ringer from 7 to 7
D/FindMyPhone(29778): processCommand, reply to phonenr: 436801234567
...

  • Phone: OnePlusOne
  • OS: Cyanogenmod 11.0 (Android 4.4.4)
  • Phone number is replaced for privacy reasons.

Discussion

  • Antonio Pisano

    Antonio Pisano - 2015-12-30

    I could fix this: error is caused by phone number being passed using URI encoding. This will strip every + (plus) character into spaces, thus invalidating the sending.

    I have replaced this technique passing phone number using Extras rather than intent data. I attach the two modified class files involved in the fix.

    All the best

     
    • Erik Bergfur

      Erik Bergfur - 2016-06-05

      Antonio Pisano, please feel free to commit your changes directly. You should now have access to make changes to the project

       
  • meian

    meian - 2016-06-03

    Any chance this will be fixed? Or can you recommend me a similar app?

     

Log in to post a comment.

MongoDB Logo MongoDB