Coder Social home page Coder Social logo

app-center-app-xamarin's Introduction

App Center Mobile App

Microsoft App Center is mission control to help mobile developers build mobile apps.

Microsoft App Center Mobile App complement Microsoft App Center portal to let mobile developers track their developed apps' usage from customers in a light and mobile manner.

The key design philosophy of mobile version is to let developers retrieve app usage data from customizable notification mechanism. Developers only want to fetch data or message, view them in the mobile. They can further do the app update through the web portal.

Open Source Software

This project was built on the shoulders of giants!

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

app-center-app-xamarin's People

Contributors

anujb avatar bretjohnson avatar clancey avatar mattleibow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-center-app-xamarin's Issues

java.lang.IllegalStateException - SharedPreferencesManager.initialize

Hello. We've just released an update to our xamarin android app to open beta. This release includes the first time we're using the AppCenter SDK (replaces HockeyApp). We did not encounter any crashes in our test environment however, Google Play is showing the following:

java.lang.IllegalStateException:
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:458)
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:443)
at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:178)
at com.microsoft.appcenter.utils.storage.SharedPreferencesManager.initialize (SharedPreferencesManager.java:45)
at com.microsoft.appcenter.AppCenter.finishConfiguration (AppCenter.java:749)
at com.microsoft.appcenter.AppCenter.access$600 (AppCenter.java:58)
at com.microsoft.appcenter.AppCenter$6.run (AppCenter.java:654)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:214)
at android.os.HandlerThread.run (HandlerThread.java:67)

This is occurring on Android 9/10 OSs on the following devices:

  • Galaxy Note10+ (d2q)
  • Galaxy Note9 (crownqltesq)
  • Galaxy S10 (beyond1q)
  • Galaxy S10+ (beyond2q)
  • Galaxy S8 (dreamqltesq)
  • Galaxy S9+ (star2qltesq)
  • OnePlus 6 (OnePlus6)
  • Pixel 2 (walleye)
  • Pixel 2 XL (taimen)
  • Pixel 3 (blueline)
  • Pixel 3 XL (crosshatch)
  • Pixel XL (marlin)

We call our AppCenter regsitration routines in the OnCreate() method in MainApplication.cs

public override void OnCreate()
{
    // execute base oncreate           
    base.OnCreate();
    RegisterActivityLifecycleCallbacks(this);
    // changed due to update in CurrentActivityPlugin.
    CrossCurrentActivity.Current.Init(this);
    CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);

    // register settings needed for the app
    RegisterSettings();

    // register app center needed for crash and exception logging
    RegisterAppCenter();
}

And RegisterAppCenter()

void RegisterAppCenter()
{
   var appCenterLoggerService = new AppCenterLoggerService(appCenterKey);
   //splat   
   Locator.CurrentMutable.RegisterConstant(appCenterLoggerService, typeof(IAppCenterLoggerService));
}

And AppCenterLoggerService()

public AppCenterLoggerService(string appCenterAppKey)
{
   if (string.IsNullOrEmpty(appCenterAppKey))
      throw new ArgumentNullException(nameof(appCenterAppKey), "The app center app key cannot be null or empty.");

   AppCenterAppKey = appCenterAppKey;
   AppCenter.Start(AppCenterAppKey, typeof(Crashes));
}

public void WriteExceptionLog(Exception ex, Dictionary<string, string> customProperties = null)
{
   AppCenter.SetUserId(UserId);
   Crashes.TrackError(ex, customProperties);
}

It is unknown if these are real crashes and affecting users as we have not rec'd any feedback yet.

Please advise on this issue and any recommendations to address/correct.

Session duration reported incorrectly

We have an app on both iOS and Android using Xamarin Forms. All metrics appear to be fine except session duration. Every session is reported in the 0s-10s band with an average session length of < 1s.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.