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

Improve docs on Filesystem and Storage apis #1151

Open
mrodal opened this issue May 30, 2019 · 3 comments
Open

Improve docs on Filesystem and Storage apis #1151

mrodal opened this issue May 30, 2019 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation plugin: filesystem type: feature request A new feature, enhancement, or improvement

Comments

@mrodal
Copy link

mrodal commented May 30, 2019

Some improvements:

  • Explain how Storage is handled in non web platforms. What does it use instead of localstorage
  • Explain how Filesystem is handled in different platforms (I found out by trial that Filesystem on web it uses indexeddb)
  • In the Filesystem docs it mentions cloud backed locations, but it doesnt mention how to use them. Is it one of the FilesystemDirectory directories?
  • In the Filesystem docs, mention how to handle binary files. (this is working for me: Support encodings other than UTF-8 (and binary) capacitor#31 (comment))

Thanks, and great work, Im really liking capacitor 🙂

@kevinclarkadstech
Copy link

Also I was curious if there is any advantage to using the Capacitor Storage vs the Ionic Storage in an Ionic app.

@sabahang
Copy link

Having the same question as @kevinclarkadstech regarding the difference between the two

@kevinclarkadstech
Copy link

I decided not to use Ionic Storage because there are dependencies on Angular, although no reason there should be.

In the code there is

import { InjectionToken } from '@angular/core';

/** @hidden */
export const StorageConfigToken = new InjectionToken<any>(
  'STORAGE_CONFIG_TOKEN'
);

StorageConfigToken is created as an Angular InjectionToken but never used.

With that being said I am just using LocalForage, which is what @ionic/storage uses internally.

I haven't looked at Capacitor Storage in depth to see what it is using.

@dotNetkow dotNetkow self-assigned this Feb 4, 2020
@imhoffd imhoffd transferred this issue from ionic-team/capacitor Jun 9, 2020
@jcesarmobile jcesarmobile transferred this issue from ionic-team/capacitor-site Aug 25, 2022
@jcesarmobile jcesarmobile added plugin: filesystem type: feature request A new feature, enhancement, or improvement documentation Improvements or additions to documentation labels Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation plugin: filesystem type: feature request A new feature, enhancement, or improvement
Projects
None yet
Development

No branches or pull requests

6 participants