[TIMOB-14750] iOS: Support IndexedDB in WebView
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-08-26T17:50:13.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.1.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | supportTeam |
Reporter | Rupesh Sharma |
Assignee | Ingo Muschenetz |
Created | 2013-08-02T08:26:02.000+0000 |
Updated | 2017-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>
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/
Customer should use the linked-to shim to accomplish this particular request.
Closing ticket as "Won't Fix".