Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Open SQLite DataBase Downloaded From Internet IOS

$
0
0

@obenavidez wrote:

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.

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>