Update My App - Extension - Useful to app builders to update their distributed apps

UpdateMyApp - Extension created on 2020-07-11T18:30:00Z

I am an enthusiastic app builder, built many apps and distributed to my friends to test them.

But It becomes so messy, once i made improvements to those apps in the later stages.
I used to send the new versions to my friends and ask them to install the new version to replace the older one.

Many app builders are facing the same problem like mine.

So, i thought that the procedure would be simple and better, if the app is updated automatically.

Then i want to built an extension which updates the app simply.

:point_right: The blocks of the extension 'UpdateMyApp' are...

component_method

component_event

component_component_block

We can use the function CheckForUpdate in the initialization stage of app coding like this...

To use this extension, the users has to follow these steps...

Step-1 (Do once with the first built of the app)

  • Store your APK file on Google Drive.

  • Share it as Anyone with the link can view.

  • Copy the link of it.

Step-2 (Do once with the first built of the app)

  • Create a Google Sheet and store the App Name, App Link in Google Drive (link copied in the previous step) and App Version Code of your app, in a new row under the columns A, B and C respectively.

  • Then share the sheet once as Anyone with the link can view.

  • Use the Sheet ID and Sheet Name of this sheet as inputs with the function...

  • component_method

Step-3 (Repeat for every new version of the app)

  • Every time you create a new version of your app, then...

  • Increase the VersionCode Integer in App Builder.

  • version_code

  • Copy the VersionCode Integer and paste it to Google Sheet against the app name.

  • Now, build the app and upload it to Google Drive by replacing the older version.

Working of the extension 'UpdateMyApp' with your app...

  • Once you open the app, it checks for the update.

  • If the new version is available, it asks you to update.

  • update_notifier

  • If you press the button update, then it will update the app.

:star:That's it.

Download the resources here:

:point_right:Use this extension and feel free to suggest the improvements.

Thank you
Hema Srinivas
India
12.07.2020

:heart_eyes:P.S.
I should say my sincere thanks to my lovely kids Pranay and Manaswini for allowing me free for the last five days in building this extension.

1 Like

thank you for your contribution
Please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names.

example:
naming

Unbenannt

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Thank you very much. I will follow your valuable suggestion in my future contributions.

what about editing the extension and updating it right away? it takes you only 2 minutes...
Taifun

Ok, i definitely edit my extension and upload it once again.

Dear Taifun,

I modified the blocks by following the naming conventions and uploaded the same to my post.
Thank you for your valuable suggestion.

Hema Srinivas

1 Like

I checked. Works great. I will use this extension in my apps. This will replace dozens of blocks. Thank You.

After a moment of thought ... it would be useful to edit the text in the notification window and on the buttons. Adaptable to our language.

1 Like

Thank you very much Patryk for the usage of my extension in your apps.
Feel free to suggest improvements.

I found a cool notification extension. I would like to link your update extension with a notification. It will be necessary to separate checking for updates from downloading and being able to display the information however you like.

  • Leave the update checking block.
  • remove standard notification popup.
  • "After checking" block, modify so that the response is true if an update is available or false if not available.
  • add block to download updates.

Four blocks and an extension will be very versatile.