Is it possible to launch an application / third-party application using the NDEFLaunchApp entry to get the URI and using LaunchUriAsync without NFC tags?

Thus, I looked like a zombie in the morning all night, trying to figure out how the OS processes an NFC disc to burn NDEFLaunchApp, and I knew the following.

I am sure that there is a temporary solution that allows you to run the application for the system application / third-party application (if you know the product identifier / GUID) from your application . Since there are applications in the Windows Phone Store that I somehow found out what I was trying.

I came up with the following code:

        NdefLaunchAppRecord appLaunchRecord = new NdefLaunchAppRecord();
        appLaunchRecord.AddPlatformAppId("WindowsPhone", "{App GUID}");
        appLaunchRecord.Arguments = "_default";

        // Creating a new NdefMessage from the above record.

        var message = new NdefMessage { appLaunchRecord };

        // Getting the record from the message that we just created

        foreach (NdefLaunchAppRecord record in message)
        {
            var specializedType = record.CheckSpecializedType(false);
            if (specializedType == typeof(NdefLaunchAppRecord))
            {

                var x = String.Join(" ", record.Payload);
                // Getting the payload by GetString gets a formatted Uri with args

                string result = System.Text.Encoding.UTF8.GetString(record.Payload, 0, record.Payload.Length);
                // result = "\0\fWindowsPhone&{5B04B775-356B-4AA0-AAF8-6491FFEA5630}\0\b_default";
                // result = "(null)(form feed)WindowsPhone&{App GUID}(null)(backspace)_default

                // So this will be sent to the OS and I believe the OS will then launch the specified app by an unknown protocol
                // like xxx://result
                // and the app will be launched?

                // So is it then possible to somehow call the following:

                await Windows.System.Launcher.LaunchUriAsync(new Uri("OUR MAGIC RESULT?", UriKind.RelativeOrAbsolute));

- , REAL Service WP, Microsoft, /, . ( , , , , , + );

APPS, :

  • ( Music + Video Hub)

http://www.windowsphone.com/en-gb/store/app/music-hub-tile/3faa2f9e-6b8d-440a-bb60-5dd76a5baec1

  1. Bing Vision

http://www.windowsphone.com/en-gb/store/app/tile-for-bing-vision/05894022-e18c-40a4-a6cc-992383aa7ee8

+4
1
0

All Articles