dpa99c / cordova-sqlite-porter

Cordova/Phonegap plugin to import/export a SQLite database using either SQL or JSON.
68 stars 29 forks source link

Plugin doesn't work on iOS using Ionic DevApp #42

Closed rodrake1 closed 5 years ago

rodrake1 commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Current behavior:

Started a Ionic3 blank project and installed plugins and npm packages for sqlite and sqlite-porter. Database was created successfully using sqlite, but when trying to fill the database using sqlite-porter to import a sql file, it throws the error "plugin_not_installed".

Expected behavior:

Data should be imported to the database after the sql statements being executed with importSqlToDb.

Steps to reproduce:

1) Installed Ionic 3.20 2) Started blank project 3) Installed sqlite and sqlite-porter plugins using:

$ ionic cordova plugin add cordova-sqlite-storage
$ npm install --save @ionic-native/sqlite
$ ionic cordova plugin add uk.co.workingedge.cordova.plugin.sqliteporter
$ npm install --save @ionic-native/sqlite-porter

4) Implemented the code as seen in https://github.com/rodrake1/sqlite-app 5) Ran it on iPhone 7 using Ionic DevApp latest version 6) Created database using first button 7) Tried to fill database using second button

Environment information

Runtime issue

Related code:

insert any relevant code here such as plugin API calls / input parameters

Console output

plugin_not_installed ``` // Paste any relevant JS/native console output here ```


**Other information:** # Feature request # Documentation issue
dpa99c commented 5 years ago

Ionic DevApp only supports a selective set of native plugins of which this plugin is not one of them. If you wish to use this plugin, you need to do a full native build of the iOS app using Ionic/Cordova.

rsalt commented 5 years ago

Hi I am facing the same issue, where as i am couldn't able to import .sql schema in my sqlite db using sqlite porter plugin in ionic 3 project. image

rsalt commented 5 years ago

@dpa99c do you have any of example or reference can follow to do so.!!!

dpa99c commented 5 years ago

https://github.com/dpa99c/cordova-sqlite-porter-example