Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to auto update app from app center in C#?

Greetings,

I have tried my best to follow up on how to distribute using app center, but to no avail.
Here's the code sample where I distribue, all in the mainActivity.

protected override void OnCreate(Bundle savedInstanceState)
        {
            Distribute.SetEnabledForDebuggableBuild(true);
            AppCenter.Start("[Key here. Hidden for now]",
                   typeof(Analytics), typeof(Crashes), typeof(Distribute));
            Distribute.CheckForUpdate();
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }

And I just uploaded a new version on the app center, but I get no prompt, no nothing. Anyone that knows what I'm missing is welcome. Thank you

Answers

Sign In or Register to comment.