Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14750] iOS: Support IndexedDB in WebView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-26T17:50:13.000+0000
Affected Version/sRelease 3.1.0, Release 3.1.1
Fix Version/sn/a
ComponentsiOS
LabelssupportTeam
ReporterRupesh Sharma
AssigneeIngo Muschenetz
Created2013-08-02T08:26:02.000+0000
Updated2017-03-22T23:00:16.000+0000

Description

Description

Support for IndexedDB on iOS for tiatnium'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, though iOS 7 _may_ include IndexedDB support. 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/
  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 "Won't Fix".

JSON Source