Search code examples
windows-phone-8windows-phone

Launch application automatically from an SMS on Windows Phone 8


I would like to launch an application using parameters provided from an SMS. The behaviour I wish to achieve is that as soon as the user receives an SMS, the application will be launched with the parameters provided in the SMS. I.e. seamlessly present the SMS in a more user friendly way.

I have experimented with URI protocol associations and so far I can send an SMS to the test phone with text unleashed:param=test (protocol is taken from book “Windows Phone 8 Unleashed”, code is in WP8UnleashedSource_01_05\Source\FileAndProtocolAssociations). When pressing the link in the received SMS the application is launched successfully.

But it would be great if the is a way to also launch the application automatically as soon as the SMS is received.

Is this possible on all Windows Phone models and versions from 8 and up? Or are there other approaches, for example use push notifications, that are better suited to achieve the seamless use-case I described?

Thanks & Regards

This question is similar to Launch App through SMS (URI-Association) but I would like to concentrate on the automatic launch.


Solution

  • This is not possible on the Windows Phone 8 due to some security reasons.

    This might be possible in Windows Phone 8.1. I read somewhere that 8.1 supports 3rd party SMS clients. This might mean there may some event that fires when new SMS are received. I am not sure though.

    I would still suggest you to use Push Notifications.