-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsolatedStorageFile GetUserStoreForApplication() returns wrong path on .NET for iOS #83384
Comments
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsDescriptionI recently upgraded my application from old Xamarin to new .NET 7 for Android & iOS. So e.g using old Xamarin.iOS framework I get: and for .NET 7 for iOS I get: and that's the reason the app does not see previously stored data. I see similiar problem described in #74642, but it does not seem to be resolved to me. Reproduction Steps
Expected behaviorIsolatedStorageFile.GetUserStoreForApplication() should be exact the same using Xamarin.iOS and .NET 7 for iOS. Actual behaviorPaths are different. Regression?No response Known WorkaroundsNo response Configurationdotnet workload: ios 16.2.1024/7.0.100 SDK 7.0.200 Other informationNo response
|
Should be fixed by #83380 |
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger Issue DetailsDescriptionI recently upgraded my application from old Xamarin to new .NET 7 for Android & iOS. So e.g using old Xamarin.iOS framework I get: and for .NET 7 for iOS I get: and that's the reason the app does not see previously stored data. I see similiar problem described in #74642, but it does not seem to be resolved to me. Reproduction Steps
Expected behaviorIsolatedStorageFile.GetUserStoreForApplication() should be exact the same using Xamarin.iOS and .NET 7 for iOS. Actual behaviorPaths are different. Regression?No response Known WorkaroundsNo response Configurationdotnet workload: ios 16.2.1024/7.0.100 SDK 7.0.200 Other informationNo response
|
Fixed by #83380 |
Description
I recently upgraded my application from old Xamarin to new .NET 7 for Android & iOS.
Unfortunately, after installing a new version of the app on real device I noticed I lost all the data stored using Akavache library.
After some investigation I noticed that the problem lies in the path that is returned from IsolatedStorageFile.GetUserStoreForApplication() (Akavache library uses it as a path for mobile projects).
So e.g using old Xamarin.iOS framework I get:
"{some-path-with-UDID}/data/Containers/Data/Application/{UDID}/Documents/.config/.isolated-storage"
and for .NET 7 for iOS I get:
"{some-path-with-UDID}/data/Containers/Data/Application/{UDID}/Documents/.isolated-storage/uygfypsp.kjn/qxiowk50.cd0/AppFiles/"
and that's the reason the app does not see previously stored data.
I see similiar problem described in #74642, but it does not seem to be resolved to me.
Reproduction Steps
Expected behavior
IsolatedStorageFile.GetUserStoreForApplication() should be exact the same using Xamarin.iOS and .NET 7 for iOS.
Actual behavior
Paths are different.
Regression?
No response
Known Workarounds
No response
Configuration
dotnet workload: ios 16.2.1024/7.0.100 SDK 7.0.200
TargetFramework: net7.0-ios
Other information
No response
The text was updated successfully, but these errors were encountered: