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

PouchDB Api not working #71

Open
Sudalaiyandi opened this issue Dec 12, 2018 · 1 comment
Open

PouchDB Api not working #71

Sudalaiyandi opened this issue Dec 12, 2018 · 1 comment

Comments

@Sudalaiyandi
Copy link

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" : "1.0.5"
"pouchdb-adapter-cordova-sqlite" : "2.0.3"
"pouchdb": "6.3.4"

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)

@nolanlawson
Copy link
Owner

I'm sorry, but I don't have time to debug an app. If you can find a reduced test case or a fix, then a PR would be welcome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants