I am creating an application using cordova :
openDatabase('testname', '1.0', 'Database display name', 5 * 1024 * 1024)
I am using plugin to signin with facebook https://github.com/wizcorp/phonegap-facebook-plugin , after successfull login I am calling following function
facebookConnectPlugin.api("<user-id>/?fields=id,email", ["user_birthday"],
function (result) {
alert("Result: " + JSON.stringify(result));
/* alerts:
{
"id": "000000123456789",
"email": "myemail@example.com"
}
*/
openDatabase('testname', '1.0', 'Database display name', 5 * 1024 * 1024)
},
function (error) {
alert("Failed: " + error);
}
});
I am getting an error SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.