Update Version in app

I designed the function to update the version in the app without shutting down the app.
I just need to click download APK file after downloading it will automatically update and start at the application. But my blocks seem to be missing so they don’t work.


Try the latest version of this extension


It still gives error.

you did not use the latest version
also you forgot to provide a screenshot of your relevant blocks