Serge Misnik
Serge Misnik

Reputation: 307

How to diagnose Snipping Tool redirect when opened programmatically?

I have an UWP (.NET Core 2.1) application and trying to call the snipping tool:

var package = Windows.ApplicationModel.Package.Current;
var responseUri = "myapp://app";
var options = $"user-agent={Uri.EscapeDataString(package.Id.FamilyName)}&auto-save=true&rectangle&enabledModes=All";
var uri = $"ms-screenclip://capture/image?{options}&redirect-uri={responseUri}";
await Launcher.LaunchUriAsync(new Uri(uri));

Snipping Tool opens but then my application get no response.

If call myapp://app in the browser, I press Open Link button and App.OnActivated(IActivatedEventArgs args) gets called.

Why does the redirection not work?

Upvotes: 0

Views: 34

Answers (0)

Related Questions