After closing app switches back to an older version

I’m having a problem, where whenever I close the application, both ios and android, when returning, is returning to the previous version.

In IOS it comes back automatically, without me allowing this action.

On ANDROID and displayed a question:


Has anyone ever been through this situation and could you help me?

Problem solved. We updated the version of the code in the ionic repository and the versioning problem stopped happening.