I try to use HockeyApp on a iOS project with xamarin forms.
It's working fine on android, but I can't get it working on iOS.
Here's my AppDelegate code for HockeyApp:
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure("----");
manager.CrashManager.Init();
manager.LogLevel = BITLogLevel.Verbose;
manager.CrashManager.CrashManagerStatus = BITCrashManagerStatus.AutoSend;
manager.StartManager();
manager.Authenticator.AuthenticateInstallation();
if (BITHockeyManager.SharedHockeyManager.CrashManager.DidCrashInLastSession)
{
runInSafeMode = true;
Thread.Sleep(5000);
}
Then, later in my code I throw an NotYetImplementedException.
The exception is correctly catched and send to the server on android, but I can't get it working on iOS.
BITHockeyManager.SharedHockeyManager.CrashManager.DidCrashInLastSession is always false.
I also tried without the debugger attached as I read that the debugger catch exception before the SDK, still not working.
Any ideas ?
EDIT : Additional informations
I tried Visual Studio Mobile Center, working fine on android, same issue with iOS, HasCrashedInLastSessionAsync always to false
I moved the throw exception outside of the main method, just in case of, still the same problem, exception looks like not detected by the API
I disabled the debugging in addition of not attaching the debugger, I also tried to compile in Release, nothing new.
I removed the call to Init and AuthenticateInstallation, still the same problem.
manager.CrashManager.Init()
andmanager.Authenticator.AuthenticateInstallation()
. I also do not set theLogLevel
but that should not hurt anything. I believemanager.Authenticator
stuff is only needed if you plan to do stuff other than exception handling and analytics. – hvaughan3