If I did not misunderstand you.
It will not be elegant but it will work.
When the APP is downloaded and run the first time in the Phone, the old version an example ver example ver 1. The old version does not make any file or record.
The new code in the new Update example ver 2, can have a code to check if a specific file exist, if the file does not exit then , it is an update in that phone. and you can trigger an event or make another file to save to always trigger an event because it is an updated example ver 2