Pouchdb + Cordova not working

Asked

Viewed 95 times

0

I’m developing an application using the Pouchdb and creating apps using Cordova.

I already tested the application on Chrome, firefox, android browser, safari, Blackberry browser, app for Ios, apk no Blackberry and in all of them worked properly.

The problem is only in the android, where the app opens normally and when the Pouchdb begins to do the Sync the application closes alone without error message or any log. I have performed several tests on two different tablets (Android 4.1.2) and in both occurs the same problem.

Someone’s been through this trouble?

I need to fix this urgently.

Thank you very much.

  • Are you using CORS? In adb there is no log or information with the Cordova TAG? From what I saw on their github there is a problem in Webkit Android 4.1 and 4.2.2 and unfortunately there is no solution for this. More info on the link: https://github.com/pouchdb/pouchdb/issues/504

  • Yes using CORS. I managed to solve here, is a problem with the Sqlite + Android, I think Android can not manage and kills the application. I tested with the Websql and worked properly, thank you.

1 answer

0


I performed tests on different versions of Android and found that the problem is in Android and not in the application. This version of Android for some reason when the application starts writing and reading lots of data on disk, presents some fault related to memory dump or something like that causing the application to close unexpectedly. Updated Android to 4.4.2 and started working perfectly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.