Force sqlstorage to be synchronous


#1

Currently to get sqlstorage I have to do an async call like this which returns a promise.

this.platform.ready().then(() => {
this.storage = new Storage(SqlStorage);
this.storage.get(‘email’).then((email) => {

.
.
.

I do not want to do an async call, rather I need to make sure this I retrieve the content from the data base synchronously. Can I do this?


#2

Take a look at siminov.com it might have something useful.

Although going against the inherent nature of ionic is not always the best idea.

Hope it helps

thefeldkircher