Note: For In-App Update Component to work you should have uploaded your app to Google Play Store.
A. Check for an update when the screen is initialized:
1. Flexible Update
It will start a flexible update; what that means is your user will be able to use your app while the update will get downloaded in the background.
The update will be either installed when the user restarts the app or by this method given below:
Please use ‘In-App_Upate.initialised’ if the above doesn’t work.
This will start an immediate update, and the app can not be used in the duration of the update.
After it gets downloaded it will automatically get installed.
B. Update Failed or Cancelled
You can use this block to notify the user that the update either cannot be installed or the user has cancelled it in which case you can ask the user to retry.
C. Update Installed
This event will rise when the update has been successfully installed in this you can put a notifier or close application or move to screen block
That’s It.
This was my first guide please feel free to correct any errors.
/Ravi Garg
Correct the notices from ‘Upgrade Successful/Failed’ to ‘Update Successful/Failed’
Upgrade is used when you are changing hardware parts and for software you use update