Search code examples
ydn-db

ydn indexeddb android native browser unable to see database tables


I have an web app that uses indexeddb and I use YDN as the wrapper. It works on Safari, internet explorer, firefox and Chrome. But when using the native browser on a Samsung Tab 2 it doesn't seem to create the tables or the database. I have managed to debug the device using weinre (remote debugging) I have inspected the resources tab and the database has not been created. But I have another page in my Web App that shows a list of entries in one of the database tables and it shows the entries and the data that is stored. So that tells me I am saving the data. But on inspection unable to view or verify.

  db.count('temp').done(function (TempData) {
   alert("DB TEMP Times " + TempData);

});

This returns as zero.

Android Version is 4.2.2 Any ideas? or is this a native browser issue?


Solution

  • Use ydn.debug.log('ydn.db', 'finest') to see the log message during database connection. You can also log to div Element by ydn.debug.log('ydn.db', 'finest', div).

    Also checkout https://bitbucket.org/ytkyaw/android-todo demo app.