Topic
1 reply Latest Post - ‏2012-11-07T16:00:52Z by SystemAdmin
SyedHaiderAbbas
SyedHaiderAbbas
13 Posts
ACCEPTED ANSWER

Pinned topic Worklight Deployment Package with SQLite DB

‏2012-11-07T07:48:03Z |
I went though the PhoneGap/Cordova article about the local storage (http://docs.phonegap.com/en/1.2.0/phonegap_storage_storage.md.html), but, does iOS and Android has a built-in support for SQLite or I have to deploy/install something for this as well?

Also, I want to know if I can make an existing SQLite DB the part of Worklight deployment package for Android and iOS?
If yes, then how?
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Worklight Deployment Package with SQLite DB

    ‏2012-11-07T16:00:52Z  in response to SyedHaiderAbbas
    "does iOS and Android has a built-in support for SQLite or I have to deploy/install something for this as well?"

    Yes, see:
    http://docs.phonegap.com/en/1.6.1/cordova_storage_storage.md.html#Storage

    For a list of ways to store data see my reply here:
    https://www.ibm.com/developerworks/forums/thread.jspa?threadID=460707

    "I want to know if I can make an existing SQLite DB the part of Worklight deployment package for Android and iOS?"

    Not sure, I would build a simple REST service (or similar) and use Worklight Adapters to add data to your mobile Worklight Applications.

    See the articles on Adapters here:
    https://www.ibm.com/developerworks/mobile/worklight/getting-started/

    Alternatively it's easy to work with SQLite on Android and iOS, you could build a Cordova plugin and write native code for both platforms.

    See the articles on Cordova here:
    https://www.ibm.com/developerworks/mobile/worklight/getting-started/