public override void OnCreate() { base.OnCreate(); KarteApp.SetLogLevel(LogLevel.Verbose); Logger.D("KarteSampleApp", "logging test."); Config config = new Config.Builder().InvokeEnabledTrackingAaid(true).Build(); Logger.D("KarteSampleApp", $"config: {config}."); KarteApp.Setup(this, AppKey, config); IsPlayServicesAvailable(); System.Diagnostics.Debug.WriteLine("InstanceID token: " + FirebaseInstanceId.Instance.Token); }
private void setButtons() { SetButtonsDelegate(Resource.Id.buttonIdentify, (button) => { Tracker.Identify("test-user", new Dictionary <string, object>() { { "name", "sample-name" } }); }); SetButtonsDelegate(Resource.Id.buttonView, (button) => { Tracker.View("banner"); }); SetButtonsDelegate(Resource.Id.buttonTrack, (button) => { Tracker.Track("favorite", new Dictionary <string, object>() { { "id", "P00003" }, { "name", "ミネラルウォーター(500ml)" }, { "price", "100" } }); Tracker.Track("buy", new Dictionary <string, object>() { { "name", "sample-name" } }, (isSuccess) => { System.Diagnostics.Debug.WriteLine("TrackingTask isSuccess: " + isSuccess); }); }); SetButtonsDelegate(Resource.Id.buttonPush, (button) => { Tracker.View("push_text", "push_text", new Dictionary <string, object>() { { "name", "sample-name" } }); }); SetButtonsDelegate(Resource.Id.buttonUserSync, (button) => { UserSyncTest(); }); SetButtonsDelegate(Resource.Id.buttonOptOut, (button) => { KarteApp.OptOut(); }); SetButtonsDelegate(Resource.Id.buttonOptIn, (button) => { KarteApp.OptIn(); }); SetButtonsDelegate(Resource.Id.buttonRenewVisitorId, (button) => { KarteApp.RenewVisitorId(); }); SetButtonsDelegate(Resource.Id.buttonIsPresenting, (button) => { System.Diagnostics.Debug.WriteLine("IsPresenting: " + InAppMessaging.IsPresenting); }); SetButtonsDelegate(Resource.Id.buttonDismiss, (button) => { InAppMessaging.Dismiss(); }); SetButtonsDelegate(Resource.Id.buttonSuppress, (button) => { InAppMessaging.Suppress(); }); SetButtonsDelegate(Resource.Id.buttonUnsuppress, (button) => { InAppMessaging.Unsuppress(); }); SetButtonsDelegate(Resource.Id.buttonFetch, (button) => { FetchVariables(); }); }