iOS / Windows Store应用程序:我可以知道我的其他应用程序是否已安装在此设备/用户帐户上吗?

时间:2018-08-23 16:08:46

标签: ios xamarin windows-phone win-universal-app

我有几个应用程序,我想从应用程序A中了解是否安装了应用程序B或C。在Android中,我可以检查软件包是否存在,但是iOS和Windows Store应用程序中是否有类似的东西?我正在使用Xamarin for iOS。

3 个答案:

答案 0 :(得分:2)

对于iOS,您可以让您的应用确认唯一的URL方案并检查是否可以打开它们。

参考文献:

URL方案-https://www.appcoda.com/working-url-schemes-ios/

可以打开网址-https://developer.xamarin.com/api/member/UIKit.UIApplication.CanOpenUrl/p/Foundation.NSUrl/

答案 1 :(得分:1)

您可以使用系统钥匙串实现此目的。 系统钥匙串中的值可以在应用程序集合之间共享,并且您可以在此应用程序中将isAppBExistsisAppCExists之类的值设置为true / false。然后在应用程序A中检查此值

Link to documentation

答案 2 :(得分:1)

对于UWP应用,您可以使用PackageManager.FindPackagesForUser方法来查找为指定用户安装的所有软件包。

请参阅以下类似主题:

how to get list of all installed apps and run them in UWP WinRT 8.1

Get List of installed windows apps

相关问题