niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
1 stars 0 forks source link

Texting to non-numerics do not work #2154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
All carriers that I am aware of have sms-to-email and email-to-sms gateways.  
Appinventor generated apps can process incoming texts from an email address and 
even store the email address as a text number in a variable or a tinydb entry.

  Texting1.MessageRecieved
    number < name number
    messageText < messageText

That stored value can be used to send a text message successfully even if the 
"number" is an email address.

  set Texting1.PhoneNumber to value number 

If you were to set PhoneNumber to text containing an email address then the 
text would go to the wrong destination.

  set Texting1.PhoneNumber to text dsweet@tgd-inc.com

Email addresses as texting phone numbers are converted to numbers.  Strangly 
the numbers are different with each email address but consistent for a given 
email address.

Clearly the Texting component's PhoneNumber is stored internally as an object 
of some kind which has multiple facets but the only way to set it is via a set 
PhoneNumber method which converts its argument to a number.

I am phone model SGH-T989 but it is not hardware specific since the emulator 
acts the same way.
I use chrome or firefox to develop from but this does not appear to be a 
browser issue.

Original issue reported on code.google.com by dsweet0...@gmail.com on 11 Jun 2012 at 11:52