WebSQL will even be discontinued?

3

I'm having a lot of problems trying to run a program developed in HTML 5, Javascript, Ajax, JSON, IndexedDB, MySQL, PHP together with the Intel XDK IDE.

The program is very simple it captures MySQL information and persists in IndexedDB, this only works on Intel XDK emulation, when I install it on Android 4.1.2 (API 16), it does not work, plugins and even then it will not.

The question is, does this project only have a button screen to execute the synchronization and a ListView , and how simple is it at the moment if you use WebSQL that works perfectly and there tomorrow or later the WebSQL will even be discontinued?

    
asked by anonymous 19.01.2016 / 10:51

2 answers

5

No one can say when and if technology currently supported by any platform will be supported in the future. History indicates that even certain things are not right at some point. It is part of the risk of developing a technology that may become obsolete and not supported in future versions.

Specifically this technology is more risky. It is not considered standard, it is only supported on some web development platforms, it is almost certain that it will not be supported by others. And yes, one day it may no longer be supported on current platforms.

Lack of support in a certain way already occurs. I do not see this being worked on where it is officially supported. It seems to me already to be bequeathed. But I also do not see how soon it is removed from the platforms that support it.

The option is IndexedDB. If you are having problems with it, try to heal them. Giving up does not seem like the best option.

If you are absolutely sure there is no solution then you can use alternatives. Ideally it would be interesting to support both technologies, the default when it gives, and the alternative when it is the only possibility.

Current WebSQL support .

Current IndexedDB support .

    
19.01.2016 / 11:08
3

I see you make a little confusion between IndexedDB and WebSQL , your question implies that you are using IndexedDB .

But unfortunately your problem is with WebView, only in Version 4.4 WebView is based on Chromium , to be exact, it uses the same version of Chorme See 30 for Android ... you can read more about it at the following link: WebView or Can I Use IndexedDB

So you have two options, continue with IndexedDB and upgrade from Android to 4.4+ or buy more up-to-date equipment.

Your second option is to use SQLite , as I believe IntelXDK is based on Cordova , you can use the following plugin: cordova-plugin-sqlite

    
19.01.2016 / 12:56