// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); KRTApp.SetupWithAppKey("APP_KEY"); KRTTracker.Track("test"); return(base.FinishedLaunching(app, options)); }
public override void ViewDidLoad() { base.ViewDidLoad(); //For iam delegate testing iamDelegate = new SampleInAppMessagingDelegate(); KRTInAppMessaging.Shared.Delegate = iamDelegate; //For idfa testing idfaDelegate = new SampleIDFADelegate(); var configuration = new KRTConfiguration(); configuration.IdfaDelegate = this.idfaDelegate; configuration.IsDryRun = false; KRTApp.SetLogLevel(KRTLogLevel.Verbose); KRTApp.SetupWithAppKey("APP_KEY", configuration); KRTInAppMessaging.Configure(); KRTNotification.Configure(); KRTVariables.Configure(); KRTTracker.View("chat", "chat"); System.Diagnostics.Debug.WriteLine("AdvertisingIdentifierString: " + idfaDelegate.AdvertisingIdentifierString); System.Diagnostics.Debug.WriteLine("VisitorId: " + KRTApp.VisitorId); System.Diagnostics.Debug.WriteLine("IsOptOut: " + KRTApp.IsOptOut); string[] btnTitles = new string[] { "Identify", "View", "Track", "ViewForScene", "Push", "UserSync", "OptOut", "OptIn", "RenewVisitorId", "IsPresenting", "Dismiss", "Suppress", "Unsuppress", "Fetch Variables" }; AddButtons(btnTitles); }
public void Setup(string appkey) { KRTApp.SetupWithAppKey(appkey, KRTConfiguration.DefaultConfiguration); }