I have the same problem. In my case, I want to store identifierForVendor
which it is id that is generated when installing the ios app. The problem of this Id
is that it changes when uninstall the app and re-install it again. So I search for method that could be used to store information even after uninstalling the app. I found Xamarin.Essentials: Secure Storage
, but after testing it appear that any value stored in the secure storage
will be removed after uninstalling the app (for older ios systems, it may be not removed. However, there is no guarantee for the newer versions of ios).
I found a solution, which may not be practical. Create a file and store the information on it. There may be some disadvantages of this solution like:
- Be careful that this file may be readable by other apps, so if you plan to store sensitive information, you may encrypt the file.
- The file may be deleted after uninstalling the app if you store the file in the app storage path, so choose a path that will not be removed after uninstalling the app such as Download folder. However, you may encounter another problem is that the user may accidentally remove this file.