Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Plugin should be asynchronous #16

Open
DibranMulder opened this issue Feb 13, 2015 · 1 comment
Open

Plugin should be asynchronous #16

DibranMulder opened this issue Feb 13, 2015 · 1 comment

Comments

@DibranMulder
Copy link

The WebSQL interface described as in the W3 specification (http://www.w3.org/TR/webdatabase/#asynchronous-database-api) is asynchronous. This plugin however is synchronous. This is unfortunately a major issue for the user experience.

I know its possible because Cordova offers a async API for native calls. The methods should return an IAsyncOperation which can be retrieved from a System.Thread.Task. The JavaScript will then return a promise instead of an instance of T.

@joeljeske
Copy link

+1
This is critical as applications expect the queries to be async and when that is changed, things break. In addition, it leads to a very poor user experience when dealing with any non-trivial datasets, especially on mobile devices.

Please fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants