-
-
Save rdavisau/0b77ba1d3218a1fd88dd224474e20d11 to your computer and use it in GitHub Desktop.
HockeyApp UnobservedTaskException
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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