Example #1
0
 void SetupApplicationInsights()
 {
     AI.XamarinSDK.iOS.ApplicationInsights.Init();
     ApplicationInsights.Setup(InstrumentationKey);
     ApplicationInsights.SetDebugLogEnabled(true);
     ApplicationInsights.Start();
 }
        protected override void OnStart()
        {
            string iKey = null;

            Device.OnPlatform(
                Android: () => {
                iKey = "<YOUR-ANDROID-KEY>";
            },
                iOS: () => {
                iKey = "<YOUR-IOS-KEY>";
            }
                );
            ApplicationInsights.Setup(iKey);
            ApplicationInsights.Start();
        }
        protected override void OnStart()
        {
            string iKey = null;

            Device.OnPlatform(
                Android: () => {
                iKey = "<YOUR-IOS-KEY>";
            },
                iOS: () => {
                iKey = "<YOUR-ANDROID-KEY>";
            }
                );
            ApplicationInsights.Setup(iKey);
            ApplicationInsights.SetDebugLogEnabled(true);
            // Set up common properties
            Dictionary <string, string> commonProperties = new Dictionary <string, string> ();

            commonProperties.Add("Common Key", "Common Property Value");
            ApplicationInsights.SetCommonProperties(commonProperties);
            ApplicationInsights.Start();
        }
Example #4
0
 void SetupApplicationInsights()
 {
     ApplicationInsights.Setup(InstrumentationKey);
     ApplicationInsights.SetDebugLogEnabled(true);
     ApplicationInsights.Start();
 }