Check For Third-Party App Installation

走远了吗. 提交于 2019-12-19 12:51:28

问题


In my app B, I need to check if app A ever installed. If A has been installed, B will invoke A.

If A has not been installed, B will go to marketplace to download A.

how to implement this???
ANY ADVICE WILL BE GREAT!
THANKS!


回答1:


There is currently no way for you to check whether a third-party application was installed on the device. However, it you are the publisher of that application, you can use:

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

This capability is documented here.




回答2:


If app A and app B are not from the same publisher there is no direct way to get this. However, if you were able to work with the developer of app B to register a custom URI association, app A could interact with the app by launching the custom URI.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx



来源:https://stackoverflow.com/questions/15870780/check-for-third-party-app-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!