Xamarin Insights doesn't send data to the dashboard

Two day now and tried debug\release\iphone\simulator, it looks like Xamarin Insights is not accepting data anymore;

iOS setup.

Insights.HasPendingCrashReport += (sender, isStartupCrash) =>
            {
                if (isStartupCrash)
                {
                    Insights.PurgePendingCrashReports().Wait();
                }
            };

Insights.Initialize("KEY_FROM_DASHBOARD_PROJECT");

Insights.Track(eventName, extraData);

I validated that all of the above are invoked, nothing appears on dashboard.

Tagged:

Answers

  • GeorgiosTaskosGeorgiosTaskos USUniversity ✭✭

    I also receive this on my output console.

    Warning: Could not post to webapi: Network state is disabled. Can not ping webapi
    Warning: Insights data communication has been manually enabled

  • madhav.shenoy83madhav.shenoy83 AUMember ✭✭

    Same here. We're building a Xamarin Forms Project

    We just use

    Xamarin.Insights.Initialize("mykey");

    in the iOS project.

    And then

    Insights.Report(Exception)

    In all try catch blocks. Seems to work fine in the Simulators but they dont work on the device

  • GeorgiosTaskosGeorgiosTaskos USUniversity ✭✭

    Did you change the HTTP implementation to CFNetwork or NSUrlSession? Switch back to Managed and it should work, that was my problem.

  • madhav.shenoy83madhav.shenoy83 AUMember ✭✭

    No not really. We're using profile 259 and I've included System.Net.Http via nuget for HttpClient.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    I have this problem...

    [Xamarin.Insights] Warning: Could not post to webapi: Network state is disabled. Can not ping webapi

    any solution?

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    See that too in the application pad when debugging. But usually Insights works in release-builds.

Sign In or Register to comment.