Skip to content

Integrate amplify datastore with sqlite in ionic/capacitor project #13549

@brucevilo1013

Description

@brucevilo1013

Is this related to a new or existing framework?

New framework

Is this related to a new or existing API?

GraphQL API, DataStore, Storage

Is this related to another service?

No response

Describe the feature you'd like to request

I need to implement offline feature using amplify datastore with sqlite in ionic/capacitor project.
But there is no proper storage adapter or reference for it.
As I know, there is equivalent in React Native, but not in Ionic/Capacitor.
https://docs.amplify.aws/gen1/react-native/build-a-backend/more-features/datastore/set-up-datastore/

Describe the solution you'd like

Is it possible to modify the existing npm package( https://www.npmjs.com/package/@aws-amplify/datastore-storage-adapter) to use it in Ionic/Angular/Capacitor project?

Please provide me any guidance.

Thanks in advance.

Describe alternatives you've considered

Modify the existing npm module (https://www.npmjs.com/package/@aws-amplify/datastore-storage-adapter) to use it in Ionic/Capacitor. I think that this module is specific for React Native mobile app.

Additional context

I tried to use the existing package (https://www.npmjs.com/package/@aws-amplify/datastore-storage-adapter) in existing Ionic/capacitor project, but it throws error "missing dependency error not found module react-native-sqlite-storage".
But I need it in Ionic/Capacitor IOS mobile app

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataStoreRelated to DataStore categoryIonicRelated to Ionic Frameworkfeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions