I'm looking at making an app which will have the ability to launch on or more of my other existing apps installed by the user on the phone (or direct them to the store).
It sure seems like this is what FindPackagesForCurrentPublisher is for, but I just can't seem to get it to work. To test this out I have my 'hub' app, and two 'target' apps installed. FindPackages... returns the expected list of 3 apps.
As the simplest example I've got code that looks like this:
var packages = InstallationManager.FindPackagesForCurrentPublisher();
// Real code verifies that I'm pointing to the app I want
var package = packages.First();
package.Launch(string.Empty);
However, I always seem to get a error.
- When running in the emulator, I get AccessViolationException
- When running on the phone the app just shuts down (even with the debugger attached).