{"action":"opened","issue":{"url":"https://api.github.com/repos/brodysoft/Cordova-SQLitePlugin/issues/173","labels_url":"https://api.github.com/repos/brodysoft/Cordova-SQLitePlugin/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/brodysoft/Cordova-SQLitePlugin/issues/173/comments","events_url":"https://api.github.com/repos/brodysoft/Cordova-SQLitePlugin/issues/173/events","html_url":"https://github.com/brodysoft/Cordova-SQLitePlugin/issues/173","id":53722788,"number":173,"title":"Sqlite plugin error openDatabase","user":{"login":"sai-sharvan","id":10446407,"avatar_url":"https://avatars.githubusercontent.com/u/10446407?v=3","gravatar_id":"","url":"https://api.github.com/users/sai-sharvan","html_url":"https://github.com/sai-sharvan","followers_url":"https://api.github.com/users/sai-sharvan/followers","following_url":"https://api.github.com/users/sai-sharvan/following{/other_user}","gists_url":"https://api.github.com/users/sai-sharvan/gists{/gist_id}","starred_url":"https://api.github.com/users/sai-sharvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sai-sharvan/subscriptions","organizations_url":"https://api.github.com/users/sai-sharvan/orgs","repos_url":"https://api.github.com/users/sai-sharvan/repos","events_url":"https://api.github.com/users/sai-sharvan/events{/privacy}","received_events_url":"https://api.github.com/users/sai-sharvan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-08T07:36:34Z","updated_at":"2015-01-08T07:36:34Z","closed_at":null,"body":"I get the following error on latest sqlite plugin in my ionic project.\r\n0     281852   log      Device is ready\r\n1     281856   error    Uncaught TypeError: Cannot call method 'openDatabase' of undefined, http://192.168.56.1:8100/js/app.js, Line: 35\r\n\r\nI am trying to open db on device ready. Error is thrown in the following line in my app.js code \r\n var db = window.sqlitePlugin.openDatabase(\"myDatabase.db\", \"1.0\", \"Demo\", -1);\r\n\r\nHow ever I don't get error when I replace the above code with :\r\nvar db = window.openDatabase(\"myDatabase.db\", \"1.0\", \"Demo\", -1);\r\n\r\nThis used to work before I updated ionic. Not sure if this is ionic specific issue?"}}