How to read the incoming SMS in UWP?

Miles.mun 1 Reputation point
2022-10-31T01:25:15.4+00:00

Hello,

Microsoft sample app is in use on Windows 11. https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/smssendandreceive/

SmsMessageReceivedTriggerDetails that register SmsMessageReceivedTrigger in BackgroundTask and run this BackgroundTask will not run.
Sms cannot be received using the above Sample App.

It works with Windows 10 with the same code.

Why not in Windows 11?

Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,988 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,121 Reputation points
    2022-11-01T17:52:14.807+00:00

    Hello,

    As the official article specifies, the SMS API requisite is Windows 10, thus implying that Windows 11 is not part of the supported scenarios.

    Reference: https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/smssendandreceive/

    In most case scenarios, this may be a function disabled in later releases due to security or vulnerability potential, or a change in the classes involved in the UWP functions.

    ------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--


  2. Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
    2022-11-10T01:35:23.87+00:00

    Hello,

    Welcome to Microsoft Q&A!

    @Miles.mun I've talked with the team about this. It is confirmed that this is a known issue with a 3rd Party driver. The issue has been reported to the vendor and is being investigated further. We currently do not have a workaround for this issue.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. sonny 1 Reputation point
    2022-11-14T07:43:21.197+00:00

    I'd like to ask you a question about it too.

    In our project, we are developing the SMS function as a UWP app using a cellular device.

    As above, there is a problem that SMS cannot be received in Windows 11.
    As shown below, I downloaded the "Microsoft Message" app from the MS store and tested it. As a result, SMS notifications are normally received.
    (Tested using the same device driver.)

    259949-image.png

    Could it be that the "Microsoft Message" app in the MS store is not a UWP app, so SMS reception works?

    0 comments No comments