Open SQLite DataBase Downloaded From Internet IOS


Hello everyone, i want to ask if you know how to open a database downloaded from internet to cordova.file.documentsDirectory, i try to open like this:

var pathDB = cordova.file.documentsDirectory + 'database.db';

$rootScope.db = $cordovaSQLite.openDB({name: pathDB, location:'default'});

always return error in the ng-cordova.js if some body can tell me how to open that database, i will be very thankful this is under IOS.

i want to clear that the path is checked with $cordovaFile.checkFile and always return that exists, the problem is when i try to open the file, and it works perfect on Android.