Working with SQLitePlugin


#1

I have been looking for solutions past couple of days. I have added cordova SQLitePlugin to the project and when I check window.sqlitePlugin, it is null. Has anyone implemented SQLitePlugin before?


#2

when do you check for window.sqlitePlugin?
Is it bevor platform ready?

for my app i listen to cdeviceReady event and then im starting angular - with this i sure all plugins are loaded and working.


#3

cordovaReady did the trick. It’s working now. Thanks.


#4

Can you post some code? I used cordovaReady but now the app navigation is not working!


#5

Hi, do you have an example, or a site I can take a look at to further understand this?


#6

Ah sorry folks i did mean deviceready

Documentation can be found here: http://docs.phonegap.com/en/3.5.0/cordova_events_events.md.html

but platform.ready() should also work: http://ionicframework.com/docs/api/utility/ionic.Platform/

example:

<script type="text/javascript">
  document.addEventListener('deviceready', function onDeviceReady() {
    angular.bootstrap(document, ['myApp']);
  }, false);
</script>

#7

See this implementation: https://github.com/jdnichollsc/Ionic-Starter-Template

Regards, Nicholls