How to update the xamarin app on a button click from the app itself

Aswathy 41 Reputation points
2023-03-01T15:42:05.3033333+00:00

I have a xamarin application and using Appcenter for the publish, we have a settings page in our App and need to enable an update button if a new release available in appcenter. And also need to update the app when the user clicks on that update button.(from the app itself,not navigate to appcenter site). Please help me if there is any solution.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
    2023-03-02T02:06:27.82+00:00

    Hello,

    For Xamarin or MAUI applications published to AppCenter, you could add Distribute.CheckForUpdate(); into the button click event for update checking.

    Please refer to Manually Check for Update to get more details.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments