I use this Code Example: https://code.msdn.microsoft.com/windowsapps/Sms-SendReceive-fa02e55e to read incoming SMS on a w10m-device.
I need to catch 1 special SMS with some trigger and show it on the screen.
Can I open the App if the special trigger was inside the SMS?
Or is it possible to use the BackgroundTask inside of the same class and so being able to access the ui?
Or is it possible to use this as an async Task?
My solution is: I use the BackgroundTask and store the received message as an XML-file. After the BackgroundTask closes it fires an event inside my app where I check whether such a file exists or not. If it does, I can read it and have all my stuff, can display it and can go on with my work :)