[TIMOB-14747] Android: Support IndexedDB in WebView
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-08-26T17:50:05.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.1.1 |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | supportTeam |
Reporter | Rupesh Sharma |
Assignee | Ingo Muschenetz |
Created | 2013-08-02T04:17:54.000+0000 |
Updated | 2017-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>
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.
Customer should use the linked-to shim to accomplish this particular request.
Closing ticket as the issue will not fix and with reference to the above comments.