Hi SajiSoft,
thank you for your reply!
Yes, I've tried the approach you described, searching the contact name by using the Contact Service API, but this method presents some drawbacks:
* the messaging service returns the Sender name as a single string, containing both first and last name. On the other side, the Contact Service API tests if the passed string matches with the first OR the last name, so the whole name will not match with any of them. Some workaround can be build, by splitting the name in parts on whitespaces, but it is surely not optimal.
* also, when you manage to retrieve the contacts with the correct name, more of them could be returned (if you have more contacts with the same name). Also, in the case there's only a single contact with that name, he could have more mobile numbers, so in this case it is just impossible to identify the exact sender's number..
There are some other drawbacks (as the Widget closing itself when trying to query too much contacts.. :-\), but this is material for another post
Pit