Phonegap: WebSql or SqLite?

后端 未结 3 943
北荒
北荒 2021-02-19 13:00

I have been working with phonegap for little time, and i\'m having some trouble with the concept of storage in it.

So, the documentation states that there is this datab

3条回答
  •  执念已碎
    2021-02-19 13:28

    I would suggest to go with WebSQL. The detailed reason is as mentioned below:

    Lets go ahead and consider the 3 major platforms that you will go with using PhoneGap:

    • IOS: WebSQL - SUPPORTED SQLite - PARTIALLY SUPPORTED
    • Android: WebSQL - SUPPORTED SQLite - FULLY SUPPORTED
    • Windows: WebSQL - NOT SUPPORTED SQLite - NOT SUPPORTED

    So ideally it goes like this - You have Windows over which you wrap up a WebSQL Plugin [unreliable] above which you wrap up a SQLite Plugin [highly unreliable].

    Hence - It's now your call. Even if you are making phonegap Apps they are mean to be fast and creating layers of one stack over another will definitely make it slow.

提交回复
热议问题