Handling version update tasks within the application itself

I’m just curious here how other people do internal version update tasks within their apps.

A good example of this: we changed some stuff recently which requires us to clear out some of the internal caches within the Cordova application.

How do you check for version updates within the app and then apply any changes/updates? How do you test them (if you do?)

What is your deployment container?

Cordova? Pwa? Capacitor? Web?

I use pwa and let the serviceworker do the job

With cordova you can use ionic appflow to push updates

In this case, Cordova.