Keystore: sideloading distribution and app update

Hi everyone,
I plan to distribute my app via sideloading with a link. My app automatically checks for updates and, when it finds them, asks the user to install the new version of the app.

I have a few questions:

  1. If I build my app from the code.appinventor server, is that where I download my keystore?
  2. In my case (sideloading distribution and sideloading updates, NO Playstore), will I need to download the keystore? How should I use it in order to avoid that users have problems in ungrade to new version of my app?

Yes, and save that keystore online (Google Drive) for future updates. Always use the same keystore for releasing a new version

What do you mean with “use” the same keystore?

I put new version apk in a Firebase database

Your APK is signed with a keystore when you build it. If you make changes or fix bugs and create a new version, you must use the same keystore that was used for the previous version. Only then will users be able to update the app.

In most cases, you don’t need to worry about this as long as the keystore hasn’t been deleted in App Inventor. However, it’s always a good practice to keep a backup of both your keystore and the .aia file.

Now, suppose the keystore gets deleted or overwritten for some reason, this will make your app impossible to update. To resolve this, you can import the same backed-up keystore into App Inventor.

Keystore == Source of Truth :grinning_face:

Ok @yashsrv

So if I have well understood, now I have only to save the keystore. In order to allow users to upgrade to new versions build from the same server, I usually don't need this keystore.

If something happen (the server loose my keystore) , I have to upload my keystore to Mit App Inventor server and build the new version.

Nothing to do now? Is it?

As has been said, you must use the same keystore AND the the same package name (plus current version code + 1).

Ok… but only if the server loose the keystore! Is it?

If nothing of bad appens, can you confirm that I have only to save the keystore?

Yes.

Thank you to all!

1 Like

Welcome!

Hi guys.
To download this 'keystore' from APPI, just click on 'My Projects', select the corresponding option for the project that is the target, and click 'export the keystore'? Would it be one per project?
(They are all downloaded with the same_name.keystore, right?)

No! it’s one keystore for all your projects! It belongs to your email account using which you signup.

Thanks eAcademy.

So it will only be used on the APPI website, to be able to edit/update the projects existing there, it is not used on the Google Play Console.

No.

It is almost only used for the Play Store (or if you want to update your app on your device without Play Store).

Anke’s answered correctly.