Search code examples
androidsqlitecordovapouchdb

"big" attachement over pouchdb with sqlite froze


When using PouchDB with Cordova on an Android 8 device (without crosswalk plugin), getAttachement never answer on file bigger than 1 or 2MB. By "never answer", I mean that my promise never resolves (nor success nor failure). FYI: tiny attachments works perfectly.

Version :

  • android: 8 (on a galaxy s8)
  • cordova: 8 (with android platform 6.4.0)
  • cordova-plugin-sqlite-2: 1.0.4
  • pouchdb-adapter-cordova-sqlite: 2.0.3
  • pouchdb: 6.4.3

This request is like this one : PouchDb.get(id,{attachments: true}) not returning data on Android

My reputation is not big enough to comment on it adding details that may help some to understand / reproduce it. So please, do not flag it as "duplicate" ;)


Solution

  • I have the final answer : it is a known android limitation which relates to an already answered question here.