In Xamarin.Forms UWP app, how can I call Essentials.Platform.OnLaunched() if started by OnActivated() or OnFileActivated()?

Viewed 18

I have a XF UWP app that start normally, or because of a URI string (and I get a call to OnActivated() in App.xaml.cs), or because of an open file for an associated file time (getting OnFileActivated() call).

The Xamarin.Essensials packcage needs (I think) a call to Xamarin.Essentials.Platform.OnLaunched(args), but args is of type LaunchActivatedEventArgs, which I get on the OnLaunched() call, but not the others.

Is this call to OnLaunched() normally needed? Looking at the code, maybe not for for my use. But if so, How do I do this?

0 Answers
Related