SDK to use HockeyApp in Windows Phone apps.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits behind codenauts:develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Files
HockeySDK.Net45
HockeySDK.WP75
HockeySDK.WinRT
HockeySDK
Nuget
packages
.gitignore
HockeyApp.1.1.0.1.nupkg
HockeySDK.sln
LICENSE.txt
README.md

README.md

The HockeySDK for Windows Phone allows users to send crash reports right from within the application. When your app crashes, a file with basic information about the environment (device type, OS version, etc.), the reason and the stacktrace of the exception is created. Then the apps is killed. The next time the user starts the app, he is asked to send the crash data to the developer. If he confirms the dialog, the crash log is sent to HockeyApp and then the file deleted from the device.

Requirements

  • Windows Phone SDK 8.0
  • Visual Studio 2012

Import Library

  • Download the latest version of HockeySDK-WindowsPhone.
  • Unzip the file.
  • Copy the HockeySDK.dll to your project directory.
  • Open your solution in Visual Studio.
  • Right-click the group "References" and select "Add Reference".
  • Choose the tab "Browse", search for the HockeySDK.dll and confirm with OK.

Modify Code

  • Open your App.xaml.cs
  • Search the method "App" and add the following line at the top of the method:
    HockeyApp.CrashHandler.Instance.Configure(this, APP_ID);
  • Replace APP_ID with the App ID of your app on HockeyApp.
  • Open the root page of your app (or the page in which you want to check for new crashes), for example MainPage.xaml.cs.
  • Search the constructor of the class, e.g. "MainPage", and add the following line at the bottom:
    HockeyApp.CrashHandler.Instance.HandleCrashes();
    If you want to send crashes without user interaction, use this line instead:
    HockeyApp.CrashHandler.Instance.HandleCrashes(true);
  • Run your app from Visual Studio (menu Debug > Start Debugging).
  • Stop your app to detach the debugger.
  • Start your app from the home screen or the list of apps.

Now every time when an unhandled exception occurs, the app is killed. At the next start, you should be asked to send the crash data (or crashes are sent automatically if you configured this).

Support

If you have any questions, problems or suggestions, please contact us at support@hockeyapp.net.