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

Hangs when used in conjunction with cordova-sqlite-storage plugin #32

Open
thomson02 opened this issue Sep 3, 2015 · 3 comments
Open

Comments

@thomson02
Copy link

With the cordova-sqlite-storage (v0.7.9) installed this plugin appears to hang (using pouch v4.0).

The 'then' and 'catch' functions are never called. The debugger shows:

      OPEN database: _pouch_database
      File: SQLitePLugin.js Line: 174, Column 15 

      new transaction is waiting for open operation
      File: SQLitePLugin.js Line: 105, Column 17

      DB opened: _pouch_database
      File: SQLitePLugin.js Line: 79, Column 15

      OPEN database: https://user:pass@url/database
      File: SQLitePLugin.js Line: 174, Column 15 

      new transaction is waiting for open operation
      File: SQLitePLugin.js Line: 105, Column 17 

I can give a code example if required.

@thomson02 thomson02 changed the title Does not working in conjunction with cordova-sqlite-storage plugin Does not work in conjunction with cordova-sqlite-storage plugin Sep 3, 2015
@thomson02 thomson02 changed the title Does not work in conjunction with cordova-sqlite-storage plugin Hangs when used in conjunction with cordova-sqlite-storage plugin Sep 3, 2015
@nolanlawson
Copy link
Member

Yeah unfortunately the cordova-sqlite-storage plugin is not as stable as it used to be (does not pass the PouchDB test suite anymore). Which device did you run this on?

@thomson02
Copy link
Author

I was using an industrial device; the Motorola/Zebra TC55 running Android 4.4.3.

@nolanlawson
Copy link
Member

In that case, try androidDatabaseImplementation: 2; it uses an older version of sqlite-storage that's more stable: http://pouchdb.com/api.html#create_database

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