Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mandatory or optional updates for code push based on release

I'm using code push plugin to push updates on my app without passing through the play store.

I think is a great utility to have this. Reviewing the documentation from the App Center, I see that you may make an update to be mandatory or optional, for which the user may ignore it. The configuration for doing this happens from within the app itself, inside the code.

I was wondering if there's a way to make some updates mandatory and some others optional, based on the codepush release you are doing.

I saw that when you run this command to trigger a new update you need to specify your user+app, the path to the source where the built app is with the require changes, the target version(s) where this update will be prompted to be installed, the environment and a description... But I don't see the possibility to send extra parameters to indicate if it would be mandatory to install it or not, and based on this when checking for updates inside the app, configure dynamically the notification for the user.

Thanks a lot!

like image 479
Rodrigo Martinez Avatar asked Jul 09 '26 17:07

Rodrigo Martinez


1 Answers

You can add the --mandatory true flag, as in the docs: https://learn.microsoft.com/en-us/appcenter/distribution/codepush/cli

like image 122
Gabriel Petersson Avatar answered Jul 11 '26 13:07

Gabriel Petersson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!