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

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?
 

Latest posts

Members online

No members online now.

Forum statistics

Threads
340,022
Messages
2,263,057
Members
428,776
Latest member
sktkyo