AppListEntry.LaunchAsync vs Launcher.LaunchUriAsync

118 Views Asked by At

I want to know the difference between AppListEntry.LaunchAsync and Launcher.LaunchUriAsync

From AppListEntry.LaunchAsync documentation

Launch the app associated with this AppListEntry.

The app is launched without passing parameters. It is launched in the same way as if the user clicked on the entry in the app list.

From Launcher.LaunchUriAsync documentation:

Starts the default app associated with the URI scheme name for the specified URI.

Launcher.LaunchUriAsync launched without passing parameters is this the only difference ?

Thanks is advance.

1

There are 1 best solutions below

0
Vincent Menant On

Passing params or not is an important difference... If you want to open an external URI in the default browser the only way is Launcher.LaunchUriAsync(websiteUri). Many of deeplink have params, and for that the LaunchUriAsync is the only way to be opened.