IOS app behavior after installing a new version from the app store

I have an iOS application installed on the iPhone from the application store, now if I have an updated version 1.1 for the same application in the application store and I get some informative notification from an older version 1.0 (a new version is available ... )

If I click the alertview ok button, it will redirect me to the link of the new application in the browser. Then I download my new version.

Please provide answers to the following questions:

  • Will it replace the old version?
  • Will it replace the sqlite and image folder on the document path? (Both versions have the same sqlite file with a name, for example abc.sqlite1.0 and the same folder name, for example imagesToBeCopied)
  • Will it add sqlite entitie rows with new rows for the same object?
  • How can I install version 1.0 again from the app store? Is it possible to get it?

Please provide you with your valuable answers that can help me solve a solution.

Thanks.

+6
source share
2 answers

1.Install a replacement for the old version?

Yes, the application package will be replaced with a new one.

2. Will it replace the sqlite folder and images on the document path? (Both versions have the same sqlite file with a name, for example abc.sqlite1.0 and the same folder name, for example imagesToBeCopied)

No, the document catalog does not affect the update process. If you have procedures in your code that update the document catalog, they will still work, but without any changes it will not differ from the usual launch of your application - for example, if you check and copy, if necessary, something from the package to the document directory, this will happen only if the target file does not already exist.

3. Will it add sqlite entitie rows with new rows for the same object?

This is not related to the upgrade process. If you want to change the data as part of the update, you will write this specifically in the first start code for your new version.

4. How can I reinstall version 1.0 from the app store? Is it possible to get it?

No, the updated version replaces the old one in the application store.

+2
source

As I know...

  • Yes, the new version of the application will replace the old version.
  • Yes, it will replace your sqlite file, assuming that your paths have not changed in different versions. If you want to deal with such a case, you must include the logic in the new version of the application in order to check the availability of the sqlite file and overwrite or modify it accordingly.
  • No, all changes to the sqlite file must be done manually using the new version (see # 2).
  • This is currently not possible to do through the app store. Only one version of any application can be placed for "sale" at a time. You will need to do this using other means (for example, testflightapp.com [for adhocs for developers]).
0
source

Source: https://habr.com/ru/post/921174/


All Articles