cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Caballero (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5788) SECURITY_ERR:DOM Exception 18 opening Database websql
Date Fri, 17 Jan 2014 12:47:21 GMT

    [ https://issues.apache.org/jira/browse/CB-5788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874731#comment-13874731
] 

Jose Caballero commented on CB-5788:
------------------------------------

In http://cordova.apache.org/docs/en/3.3.0/cordova_storage_storage.md.html#Storage_plugin_based_options
you dont need to install any plugin. With Plugman search storage dont find any plug.

I only have 
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.BROADCAST_STICKY" />

in Manifest.xml

> SECURITY_ERR:DOM Exception 18 opening Database websql
> -----------------------------------------------------
>
>                 Key: CB-5788
>                 URL: https://issues.apache.org/jira/browse/CB-5788
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.3.0
>         Environment: Only some Android mobiles. Samsung S3 Mini Android 4.1.3, Samsung
Note II Android4.1.9, Huawei Y900 Android 4.1.1.
> Tablet Silken i-joy Android 4.1.1
>            Reporter: Jose Caballero
>              Labels: SECURITY_ERR, openDatabase
>
> I try
> function BDConnect()
> {
> 	 d = new $.Deferred();	
> 	 try{
> 		 if (!window.openDatabase) { 
> 		        alert('BD not supported'); 
> 		} else { 
> 		        var shortName = 'iDB'; 
> 		        var version = ''; 
> 		        var displayName = "iDB"; 
> 		        var maxSize = 1024; // in bytes 
> 		        baseDeDatos = openDatabase(shortName, version, displayName, maxSize);		   
 
> 		    }
> 	}catch(err)
> 	{	
> 		 alert("Error al abrir la base de datos CODE:"+err);	
> 	  	d.resolve();
> 	  	return d.promise();
> 	}
> 	return d.promise();
> }
> And in some android mobile throw "SECURITY_ERR:DOM Exception 18"
> Samsung S3 Mini Android 4.1.3, Samsung Note II Android4.1.9, Huawei Y900 Android 4.1.1.
> Tablet Silken i-joy Android 4.1.1



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message