Jason gives a good solution to this problem in this video (starting at 14:48). In his example, the application crashes if you had a callback and went to another page before the callback ended. Could this be the case for your application? What is more information about what happens when navigating?
For others (since it looks like you already know about it!):
To facilitate debugging, use the WinJS.Application.OnError event . Attach an event handler that uploads information about the problem before the application crashes.
WinJS.Application.onerror = function (info) { var err = { errorMessage: info.detail.errorMessage, errorUrl: info.detail.errorUrl, errorLine: info.detail.errorLine, errorCharacter: info.detail.errorCharacter, }; Windows.Storage.ApplicationData.current.localFolder .createFileAsync("crash.txt", Windows.Storage.CreationCollisionOption.openIfExists) .then(function (file) { Windows.Storage.FileIO.appendLinesAsync(file, [JSON.stringify(err)]); }); };
source share