Skip to content
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

bug: Origin Private File System is not peristent #6965

Closed
poesterlin opened this issue Oct 6, 2023 · 2 comments
Closed

bug: Origin Private File System is not peristent #6965

poesterlin opened this issue Oct 6, 2023 · 2 comments

Comments

@poesterlin
Copy link

Bug Report

Capacitor Version

  Capacitor Doctor   

Latest Dependencies:

  @capacitor/cli: 5.4.2
  @capacitor/core: 5.4.2
  @capacitor/android: 5.4.2
  @capacitor/ios: 5.4.2

Installed Dependencies:

  @capacitor/core: 5.4.2
  @capacitor/android: 4.7.0
  @capacitor/cli: 5.4.2
  @capacitor/ios: 4.7.0

Platform(s)

iOS

Current Behavior

Im using the Origin Private File System as an alternative to the Capacitor FileSystem Plugin since I have to work with images a lot and do not want to work with them as strings. Its working well but whenever the application is closed on iOS its loosing all the stored files. Im not sure if this is a Safari problem or a capacitor bug. If im using the site without the capacitor wrapper in Safari directly, the state is stored correctly.

Expected Behavior

OPFS files are correctly persisted and work after the app is closed and reopened.

Code Reproduction

I have created a repo with a very basic example here

Other Technical Details

npm --version output: 9.6.2

node --version output: v18.12.1

pod --version output (iOS issues only): 1.12.1

Additional Context

origin-private-file-system

@poesterlin
Copy link
Author

Nevermind I got it to work in the example 😅

Copy link

ionitron-bot bot commented Nov 8, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants