Open a URL from Visual Studio

I’got an app published on windows store market (with 8.1 SDK and unity 4.3.3), i’ve implemented some functions that launch an event from Unity that is listened from the visual studio project (the event-listener works correctly). That listeners try to open a url in the explorer and also the market through “market://” protocol. The function that supposes to do that is:

await Windows.System.Launcher.LaunchUriAsync(uri, options);

That function doesn’t work… (i’ve tried in Windows 8.1 Pro and also in windows 8.1 RT tablet) Anybody has the same problem with that function? Any workaround? In other words, how can a url be opened in windows store app?

Maybe you don’t have Internet capability enabled, also check the Output Window it may contain some info.

Yes, i’ve the Internet capability enabled (and also tried with all capabilities enabled, with same behaviour)… the output window in VS throws me: “the thread has exited with code 259 (0x103)” wich means that: the thread is still working???

If i try this:

var success = await Windows.System.Launcher.LaunchUriAsync(uri, options);

if (success)
{
// URI launched
}
else
{
// URI launch failed
}

success always have a false.

Please ask here - Microsoft Q&A | Microsoft Learn, this is not really Unity.

If you’re using XAML and C# you can also use the button and the NavigateUri attribute.