Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force update (immediate?) #9

Open
jonteohr opened this issue Jan 25, 2025 · 1 comment
Open

Force update (immediate?) #9

jonteohr opened this issue Jan 25, 2025 · 1 comment

Comments

@jonteohr
Copy link

jonteohr commented Jan 25, 2025

I can't seem to understand how I force the user to update if they want to continue using the app?

In my MauiProgram.cs this is what I use:

.UseAndroidInAppUpdates(static options =>
{
#if DEBUG
    options.UseFakeAppUpdateManager = true;
#endif
    options.ImmediateUpdatePriority = 5;
})

However when an update is available, its optional for the user to update, which for me seems like the flexible option.

Can someone assist me?

@HavenDV
Copy link
Collaborator

HavenDV commented Jan 25, 2025

Default priority is 0. So you need to use options.ImmediateUpdatePriority = 0; to always use immediate updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants