Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB not opening on oneplus7t Pro, Vivo V2050, RealMe 7i #92

Closed
sociomarker opened this issue Jul 3, 2021 · 2 comments
Closed

DB not opening on oneplus7t Pro, Vivo V2050, RealMe 7i #92

sociomarker opened this issue Jul 3, 2021 · 2 comments

Comments

@sociomarker
Copy link

function getsqliteDatabase() {
			
			var db = window.sqlitePlugin.openDatabase({ name: "india", location: 'default', createFromLocation: 1 });
			
			var colName = tableCol + '-dialist';

    db.transaction(function(tx) {
        
					tx.executeSql("select * from [" + colName + "];", [], function(tx, res) {	

            
            var s = "";

            for (var i = 0; i < res.rows.length; i++) {
                s += '<a href="b.html?type='+ type +'&table=' + tableCol + '&diaid=' + res.rows.item(i).id +  '&dia=' + res.rows.item(i).dia +'" class="deco btn btn-primary btn-lg btn-block">'+ res.rows.item(i).dia +'<span style="text-transform:lowercase"> '+ type1 +'</span></a>';
									//console.log(res.rows.item(i).dia);
									//s += '<p class="buttons-row"><a href="b.html?pg=bpg&type=' + type1 + '&table=' + tableCol + '&diaid=' + res.rows.item(i).id + '&dia=' + res.rows.item(i).dia + '" class="button button-fill button-raised color-orange"><b>' + res.rows.item(i).dia + ' <span style="text-transform: lowercase">' + type2 + '</span></b></a></p>';
            }

							console.log(s);
            //$('.wc-counts').append(s);
            document.getElementById('wc-counts').innerHTML = s;
        });
    });
}

function onDeviceReady() {
    //checkConnection();
    getsqliteDatabase();
	
}`
@sociomarker
Copy link
Author

We are facing this issue even though the plugin has been updated to the latest version. We are getting this issue on the below-mentioned devices. Please help on how can we fix this.

oneplus7t Pro, Vivo V2050, RealMe 7i

Thanks in advance.

@brodycj
Copy link
Owner

brodycj commented Jul 12, 2021

I suspect that this is the same as #91.

@brodycj brodycj closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants