{"action":"closed","issue":{"url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/issues/433","repository_url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage","labels_url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/issues/433/comments","events_url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/issues/433/events","html_url":"https://github.com/litehelpers/Cordova-sqlite-storage/issues/433","id":136710302,"number":433,"title":"Unable to open a Database on Windows Phone (\"Could not open database, code 0\")","user":{"login":"mglmgl","id":17496928,"avatar_url":"https://avatars.githubusercontent.com/u/17496928?v=3","gravatar_id":"","url":"https://api.github.com/users/mglmgl","html_url":"https://github.com/mglmgl","followers_url":"https://api.github.com/users/mglmgl/followers","following_url":"https://api.github.com/users/mglmgl/following{/other_user}","gists_url":"https://api.github.com/users/mglmgl/gists{/gist_id}","starred_url":"https://api.github.com/users/mglmgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglmgl/subscriptions","organizations_url":"https://api.github.com/users/mglmgl/orgs","repos_url":"https://api.github.com/users/mglmgl/repos","events_url":"https://api.github.com/users/mglmgl/events{/privacy}","received_events_url":"https://api.github.com/users/mglmgl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/litehelpers/Cordova-sqlite-storage/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T14:17:43Z","updated_at":"2016-03-11T11:23:14Z","closed_at":"2016-03-11T11:23:14Z","body":"Hi there,\r\n\r\nmy following solution works fine on iOS and Anroid.\r\nBut on a Windows Phone 8.1 or Windows Phone 10 Emulator i'm unable to open a database file or create a new one.\r\n```\r\n$ionicPlatform.ready(function() {\r\n db = window.sqlitePlugin.openDatabase({ name: \"database.db\", location: 0 }, successCb, errorCb);\r\n\r\n            function successCb(res){\r\n                console.log(\"DB open success!\")\r\n            }\r\n            function errorCb(err){\r\n                console.log(\"DB open error: \"+err)\r\n            }\r\n}\r\n```\r\nThe error-callback logs out the following:\r\n\r\n> Could not open database - code 0\r\n\r\nI'm using Cordova 6.0.0 with ionic 1.2.1 and my project is an windows-project (not wp8).\r\nPlugin version is 0.8.2.\r\n"}}