检查是否存在响应给定 URI 的 App
Check if there is an App present which responds to a given URI
在 WindowsPhone 上,您可以使用 URI 关联启动一些应用程序。现在我理解并通过使用实现了另一个应用程序的启动:
Windows.System.Launcher.LaunchUriAsync(new System.Uri("<custom-uri-scheme>:<path>"));
但在我们告诉启动器启动另一个应用程序之前,我们想检查该应用程序是否已实际安装。
是否可以检查是否存在响应给定 URI 的应用程序?我正在寻找类似于 iOS 的 [[UIApplication sharedApplication] canOpenURL:<url>]
的东西
Windows 8.x
不,目前 windows phone OS 8.0/8.1 不允许 1 you check if certain third party app is installed on the device or not. Though you can check if the user has installed other app of yours, if the publisher ID is same 2.
1:
2:
Windows 10
在 Windows Phone 10 上可以使用 Launcher.QueryUriSupportAsync
在 WindowsPhone 上,您可以使用 URI 关联启动一些应用程序。现在我理解并通过使用实现了另一个应用程序的启动:
Windows.System.Launcher.LaunchUriAsync(new System.Uri("<custom-uri-scheme>:<path>"));
但在我们告诉启动器启动另一个应用程序之前,我们想检查该应用程序是否已实际安装。
是否可以检查是否存在响应给定 URI 的应用程序?我正在寻找类似于 iOS 的 [[UIApplication sharedApplication] canOpenURL:<url>]
Windows 8.x
不,目前 windows phone OS 8.0/8.1 不允许 1 you check if certain third party app is installed on the device or not. Though you can check if the user has installed other app of yours, if the publisher ID is same 2.
1:
2:
Windows 10
在 Windows Phone 10 上可以使用 Launcher.QueryUriSupportAsync