How do you make your own uwp app to be opened with uri-scheme?

Ken Ekholm

New member
Mar 24, 2013
11
0
0
Visit site
I have tried to follow the instructions from this link https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation to register an uri for my application. But the app only open the logo and then automatically exit after an certian time when using this code.

private async void buttonInternetRadio_Click(object sender, RoutedEventArgs e)
{
var uri = new Uri("testapp://");
var options = new Windows.System.LauncherOptions();
options.TreatAsUntrusted = true;

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


In Declarations part of Package.appxmanifest I have the following properties,
Logo: testapp.png
Display Name: Test App
Name: testapp
Can someone help me with this issue?
 

Members online

Forum statistics

Threads
323,302
Messages
2,243,601
Members
428,057
Latest member
BevitalGluco2