Skip to content

Instantly share code, notes, and snippets.

@rdavisau
Created Oct 24, 2016
Embed
What would you like to do?
HockeyApp UnobservedTaskException
using System;
using System.Threading.Tasks;
using Foundation;
using HockeyApp.iOS;
using UIKit;
namespace HockeyCrash
{
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
SetupHockeyApp();
Task.Run(() => { throw new Exception(); });
return true;
}
private void SetupHockeyApp()
{
var appId = "your-appid-here";
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure(appId);
manager.StartManager();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment