Skip to content

PouchDB Api not working #93

@Sudalaiyandi

Description

@Sudalaiyandi

Issue

I have developed ionic application with pouch/couch db backend.My requirement is data are stored in pouch db via ionic page using put(),post() method.Make selector in iOS native page, then pass the selector to ionic page from native page using broad cast plugin.All save, fetch methods are available in ionic code(i.e) ts file.Once request received in ts code, make data fetch and pass records to native page using broad cast plugin.My issue is data fetch not working in ts file, fetch method called but find() and createIndex() not executed.Here I attached my code.

I have used
cordova-plugin-sqlite-2 plugin
pouchdb-adapter-cordova-sqlite 2.0.3 npm

Info

  • Environment: hybrid app
  • Platform: iOS
  • Adapter: cordova-sqlite
  • Server: CouchDB

Reproduce

ionic3-pouchdb-sqlite.zip
Once download my code ->folder path -> npm i -> ionic cordova build ios
Run this application in iOS simulator.Then add value in pouch db, using Employee entry page.In Menu page click Native Page, can able to view log for get(),find(),createIndex() this method.All method declaration is available in employee.ts file( provider class)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions