App Center force update for Android not working

2.8k Views Asked by At

i am trying to implement the force update feature using app center, i have followed their documentation found here and it doesnt seem to work at all

here's the code inside the App Class

AppCenter.start(
        getApplication(), {APP SECRET HERE}, Crashes::class.java,
        Distribute::class.java, Analytics::class.java
    )

and i have tried uploading a build like this then downloading first, and after that i uploaded a newer version with higher version code / version name and set the checkbox for "Mandatory Update", i don't get any prompt at all to update when i start the app then.

1

There are 1 best solutions below

0
Mahmoud Omara On BEST ANSWER

Found the problem with the appcenter force update, AppCenter Distribute will not work on release mode if debuggable in gradle is set to true.

so make sure to leave it on false at the build type you will be testing on

debuggable false

adding this line before starting AppCenter showed me the logs that clued me to this.

AppCenter.setLogLevel(Log.VERBOSE)