storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.14k stars 713 forks source link

Getting message: Native: tried accessing the SQLite plugin but it's not installed. ionic ios emulator 10 #594

Closed vangelisv closed 7 years ago

vangelisv commented 7 years ago

It works fine in android both emulator and device. Plugin is installed for both platforms

brodybits commented 7 years ago

I suspect there is something wrong with your installation. I suggest you try cordova-plugin-dialogs and maybe cordova-plugin-file first. I am busy with an urgent assignment and can take a look after 1-2 weeks. Marked community-help-welcome.

For priority support please contact brodybits@litehelpers.net or sales@litehelpers.net.

aces-tm commented 7 years ago

Did you ever find solution for this?

vangelisv commented 7 years ago

Yes, indeed I tried cleaning and re-installing all plugins and it worked. Thanks,

On 9 January 2017 at 16:36, acessoftware notifications@github.com wrote:

Did you ever find solution for this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/litehelpers/Cordova-sqlite-storage/issues/594#issuecomment-271299208, or mute the thread https://github.com/notifications/unsubscribe-auth/AADJT2ZumscSnfJgLxPN_wVDJIsEHJRXks5rQkXQgaJpZM4LJAgz .

aces-tm commented 7 years ago

for me it happens only when I run it with ionic run android --prod and it works fine with ionic run android but it takes 15-18 seconds to load. Did you have the same problem?

rodineijf commented 7 years ago

@acessoftware Same problem here

brodybits commented 7 years ago

To get help from the community I suggest you guys post a minimal reproduction sample.

rodineijf commented 7 years ago

Hi @brodybits, by default the attribution of rootPage on ionic 2 is on declaration of var rootPage. I can solve my problem moving the rootPage attribution to the platformReady on app.component

initializeApp() {
this.platform.ready().then(() => {

  this.rootPage = MyPage;
  StatusBar.styleDefault();
  Splashscreen.hide();
});
}
brodybits commented 7 years ago

Thanks @rodineijf. I just raised #613 to document this and related items.

BasantPandey commented 7 years ago

Hi All,

i am facing the same issue. can you please help me to fix this issue. I have cross check at my end. I installed all the mentioned plugins. But not sure why it is showing this type of message.

2017-01-19_8-56-26
rodineijf commented 7 years ago

@BasantPandey You're running on your browser or on the phone?

BasantPandey commented 7 years ago

@rodineijf I am using chrome browser emulator. As per my knowledge the old version was working well on chrome browser emulator.

brodybits commented 7 years ago

This plugin does not support the Browser platform. I hope to add it in the near future.

pbreuss commented 6 years ago

The most common reason for this error is calling the plugin too early before the app has been fully loaded. Use the platform.ready() command to make sure everything is loaded ...

this.platform.ready().then(() => {

// add your code here

});

Alejo22 commented 6 years ago

@pbreuss you have reason, the plugin is ready for use once the current platform is ready. In a browser the plugin storage doesn't work because it needs an operating system to access.

platform.ready().then(() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. this.initilizeApp(); });

fpassa commented 6 years ago

I was able to use not only to interact to SQLite but also able to manage it under browser by falling into WebSQL. In addition, extended as well to MySQL. Check it out here: https://sellfy.com/p/gUWH/

thyagobudal commented 5 years ago

Even inside platform.ready() I'm facing the same erro.. "plugin_not_installeed"... running on my android device.

ravatsinh commented 5 years ago

same issue anyone found solution please help

nationdata-it commented 5 years ago

any solution to this?