.NET CF MessageInterceptor class fails to intercept incoming messages

0.00 avg. rating (0% score) - 0 votes

If you’re writing an SMS application that intercepts incoming text messages using the MessageInterceptor class and observe that your application does not work on a particular phone, below is a list of things to check:

1. Most new HTC Phones will choose HTC Messages (part of HTC Sense), and not Pocket Outlook, as the default messaging spplication. HTC Message does not implement the MessageInterceptor class. To overcome this problem, you’ll need to set Pocket Outlook as the default messaging application by using this patch.

Note: You may not be able to send/receive MMS after installing the patch. To use MMS, please install the Arcsoft MMS client.

Update (19 July 2010): I have found a way to intercept incoming messages on affected HTC phones without installing any patch by using MAPI Rule. For more information, see this post.

2. Some phones have a specific registry key to manually enable MessageInterceptor. Check HKEY_LOCAL_MACHINESoftwareMicrosoftInboxSvcSMSRules and look for a key branch that looks like a GUID, e.g. {1000BC1C-F4A3-4210-B197-4AEBF2CEE6F5} Open that key, set the default value to 0 and reboot the phone to allow message interception.

3. You may have conflicting message interceptor rules left-over from other applications. To fix this, go to HKey_Local_MachineSoftwareMicrosoftInboxRules, delete all sub-entries and reboot the phone. To avoid this from happening in the future, always call Dispose() on a MessageInterceptor when you finish using it or when your application closes.

Reference:

1. http://social.msdn.microsoft.com/Forums/en/vssmartdevicesvbcs/thread/e56f6db2-70d6-43a9-b3f2-7d476aabfa7e

2. http://stackoverflow.com/questions/2138650/messageinterceptor-is-not-called-on-htc-hd2

0.00 avg. rating (0% score) - 0 votes
ToughDev

ToughDev

A tough developer who likes to work on just about anything, from software development to electronics, and share his knowledge with the rest of the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>