How to check if user has installed specific app on the WP8 device

后端 未结 1 512
北海茫月
北海茫月 2020-12-21 21:56

I\'m developing an app for WP8. Can I check (programmaticaly) if wp8 device has some specific app installed (i.e. WP8 Facebook app)?

相关标签:
1条回答
  • 2020-12-21 22:48

    You cannot get the list of applications that are installed on the Windows Phone that are published by someone other than the publisher of the calling application.

    There is a way, however, to get the list of applications that are installed on the device and are originating from the publisher of the caller app. Here is what I am talking about:

    IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
    apps.First().Launch(string.Empty);
    

    This required your app to run on a Windows Phone 8 device.

    0 讨论(0)
提交回复
热议问题