Search code examples
androidin-app-update

How can I force user to update my Android app with GitHub?


I don't have a Google Play Store account, I'm trying to implement AppUpdater library, but I cannot understand this procedure.

How do I set up my GitHub repository?

Here is my code:

enter image description here

And here is my Github repository.


Solution

  • If your main goal is to implement a feature of force update. I would recommend using a firebase remote config as this library will be a problem because of its requirements.

    Notes You must have one published release (at least) in the provided repository, tagged as X.X.X.X or vX.X.X.X. Repo must be public. GitHub doesn't support versionCode. You should use UpdateFrom.JSON or UpdateFrom.XML instead. Update#getLatestVersionCode() will be null when using AppUpdaterUtils. You should use Update#getLatestVersion() instead.

    It clearly states that repo needs to be public unless you are not planning to keep your code as open-source there will be plenty of rework which you need to take in future. Please find the below link for another approach https://readyandroid.wordpress.com/force-app-update-androidfirebase/