Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14747] Android: Support IndexedDB in WebView

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-26T17:50:05.000+0000
Affected Version/sRelease 3.1.0, Release 3.1.1
Fix Version/sn/a
ComponentsAndroid, iOS
LabelssupportTeam
ReporterRupesh Sharma
AssigneeIngo Muschenetz
Created2013-08-02T04:17:54.000+0000
Updated2017-03-22T18:22:53.000+0000

Description

Description

Support for IndexedDB on iOS for Titanium's web view.

Sample code

app.js
var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});

var web = Ti.UI.createWebView({
	url: "web.html"
});

win.add(web);
win.open();
web.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
	try {
		var result = indexedDB.open("test", 1);
		alert(result);
	} catch(e) {
		alert(e);
	}
</script>
</head>
<body>
<h1>This is just a test</h1>
</body>
</html>

Comments

  1. Ingo Muschenetz 2013-08-23

    This is likely difficult if not impossible to do directly. Neither Android or iOS support IndexedDB in the default browsers. Both do support the deprecated Web SQL database spec where someone has written an IndexedDB shim on top of Web SQL db: http://nparashuram.com/IndexedDBShim/. It is suggested the user incorporate this shim into their application.
  2. Ingo Muschenetz 2013-08-26

    Customer should use the linked-to shim to accomplish this particular request.
  3. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source