public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Example of how to override UIAppearance on a View Controller basis this.Window.TintColor = UIColor.Red; UIView.AppearanceWhenContainedIn(new System.Type[] { typeof(ApptentiveNavigationController) }).TintColor = UIColor.White; // Override point for customization after application launch. // If not required for your application you can safely delete this method ApptentiveConfiguration configuration = new ApptentiveConfiguration("Your Apptentive App Key", "Your Apptentive App Signature"); configuration.LogLevel = ApptentiveLogLevel.Verbose; Apptentive.Shared.Register(configuration, null); UNUserNotificationCenter.Current.RequestAuthorization((UNAuthorizationOptions.Sound | UNAuthorizationOptions.Alert), (Boolean Success, NSError Error) => { if (Success) { Console.WriteLine("Successfully got notification permission."); } else if (Error != null) { Console.WriteLine("Failed to get notification permission: " + Error.LocalizedDescription); } }); UIApplication.SharedApplication.RegisterForRemoteNotifications(); UNUserNotificationCenter.Current.Delegate = Apptentive.Shared; return(true); }
public override void OnCreate() { base.OnCreate(); var configuration = new ApptentiveConfiguration("Your Apptentive Key", "Your Apptentive Signature"); configuration.SetLogLevel(ApptentiveLog.Level.Verbose); configuration.SetShouldSanitizeLogMessages(false); Apptentive.Register(this, configuration); }