How to make update system?

I recently saw a lot of posts about ’ how to update app automatically ’ or ’ best method to show new update ‘.
So I think to create a Guide on this.I do no know whether it is useful or not but I think it is good to share some knowledge.
Components
You will need some components before getting started.I have used:

  • Button
  • Label
  • Notifier
  • Custom Tab
  • Package
  • Firebase Database

Note:- You can also make your app without some of these components but then you have to use your own logic.
How it looks from designer

28-14_15_22
28-14_15_22937×627 23.1 KB


Now move to blocks.
Blocks
When screen initializes I have set current version to app’s version.
image
Now when check for update button is clicked it checks for a new app version in Firebase Database.
image
When Firebase Database got value it compares value to version.If value is greater than app version than it will show a choose dialog else it will show an alert.

image
image691×380 23 KB


After choosing an option it will check if user clicked on update or cancel.If user clicked on update than it will open the set URL else it will show dialog again and again until user clicks Update.

image
image709×322 20.4 KB


Also if Firebase Data is updated it will also check that app’s new version is available or not.
image

 

AIA
Download Link1: App_Update.aia – Google Drive 
Download Link2(Shortened): http://raboninco.com/21784285/app-update-aia 

Why Firebase DB?
We know there is already a component called Firebase Remote Config (Kodular) so your first choice should be that.
But we can not update data of it using an app.We have to open Firebase Console to update data.That’s why I have used Firebase DB to keep it simple and flexible and it can be upated from an app.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments