I have the problem that I don't know whether to use CurrentApp
or CurrentAppSimulator
when submitting an UWP App to the Store.
When I changed my code from CurrentAppSimulator
to CurrentApp
it did not only crash on my personal computer running the tests, but also in the certification process. How do I fix that? Obviously the app has not been published at that point, but I also cannot use CurrentAppSimulator
, because the package getting certificated will also be in the Store eventually ...
What am I supposed to do to fix that problem?
The problem is likely lack of network access (which CurrentApp relies on) rather than a problem with CurrentApp itself.
Handle exceptions from the CurrentApp call so failure doesn't cause an app crash. CurrentApp can fail if it can't reach the store server. This can be if the app isn't published (likely in your local test) or if the network isn't available (likely in the cert test and possible in real world customer use)