private static void InitializeLibs() { try { // For linker only MultiGestureViewRenderer multiGestureViewRenderer = new MultiGestureViewRenderer(); ImageCircleRenderer.Init(); FormsMaterial.Init(); SharpnadoInitializer.Initialize(enableInternalLogger: true); Instabug.StartWithToken(instabugToken, IBGInvocationEvent.Shake | IBGInvocationEvent.TwoFingersSwipeLeft | IBGInvocationEvent.Screenshot); Instabug.ShouldCaptureViewHierarchy = true; Instabug.TintColor = UIColor.FromHSB(257, 81, 84); Instabug.SetLocale(IBGLocale.French); Instabug.SetWelcomeMessageMode(IBGWelcomeMessageMode.WelcomeMessageModeDisabled); // Disable welcome message // Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect. IBGReplies.Enabled = false; // Intercom Intercom.SetApiKey(intercomApiKey, intercomToken); } catch (Exception exception) { Console.WriteLine($"Exception while initializing app: {exception.Message}"); throw; } }
public override void OnCreate() { base.OnCreate(); //Intercom.Initialize(this, intercomApiKey, intercomToken); new Instabug .Builder(this, CustomVariables.INSTABUG_TOKEN) .SetInvocationEvents(InstabugInvocationEvent.Shake, InstabugInvocationEvent.TwoFingerSwipeLeft, InstabugInvocationEvent.Screenshot) .Build(); Instabug.SetViewHierarchyState(Feature.State.Enabled); InstabugCore.SetRepliesState(Feature.State.Disabled); Instabug.PrimaryColor = Color.ParseColor("#5A28D6"); Instabug.SetLocale(Locale.French); Instabug.SetWelcomeMessageState(WelcomeMessage.State.Disabled); }