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:

Captura%20de%20ecr%C3%A3%20de%202018-02-12%2016-55-13

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.