What to Use for PhoneGap Database Storage

后端 未结 1 1662
眼角桃花
眼角桃花 2021-01-31 04:36

I am writing an application using PhoneGap, and am finding it hard to work out how to store my data in a database. For the minute I just want to keep an open mind as I will be r

相关标签:
1条回答
  • 2021-01-31 05:24

    I faced the similar issue while developing an application few months back in which we were expecting to port the application to different platforms (with different versions). So instead of using the core storage mechanism which phonegap offers we went on using a dedicated storage framework which can provide consistent api but uses the best underlying storage mechanism.

    There are variety of JS frameworks which can help you use the underlying storage. The following are few might interest you if you are planning to use the app on different platforms.

    PersistenceJS - persistencejs.org

    lawnchair - http://westcoastlogic.com/lawnchair/

    persistencejs uses gears and localstorage in combination which helps to run the app on BlackBerry 5.x devices as well without any change.

    I went on using the persistencejs and it have really worked well till now. We have ported the application on Android, iPhone, iPad, BlackBerry (5.x and greater)

    0 讨论(0)
提交回复
热议问题