For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Migrate apps storing mobile data in Cloudant with IMFData or Cloudant SDK
We can store data for our mobile application in a Cloudant® database. Cloudant is an advanced NoSQL database that can handle a wide variety of data types, such as JSON, full-text, and geospatial data. The SDK is available for Java™ , Objective-C, and Swift.
CloudantToolkit and IMFData frameworks are discontinued in IBM MobileFirst Platform Foundation V8.0.0.
Use the CDTDatastore SDK as a replacement for CloudantToolkit and IMFData frameworks.
Use the Cloudant Sync Android SDK as a replacement for CloudantToolkit and IMFData frameworks. With Cloudant Sync, we can persist data locally and replicate with a remote data store.
If we want to access remote stores directly, use REST calls in your application and refer to the Cloudant API Reference.
Cloudant versus JSONStore
You might consider using JSONStore instead of Cloudant in the following scenarios:
- When we are storing data on the mobile device that must be stored in a FIPS 140-2 compliant manner.
- When we need to synchronize data between the device and the enterprise.
- When we are developing a hybrid application.
For more information about JSONStore, see JSONStore.
- Integrating MobileFirst and Cloudant security
- Create databases
- Encrypting data on the device
To enable the encryption of local data stores on mobile devices, we must make updates to our application to include encryption capabilities and create encrypted data stores.- Set user permissions
We can set user permissions on remote databases.- Modeling data
Cloudant stores data as JSON documents. To store data as objects in your application, use the included data object mapper class that maps native objects to the underlying JSON document format.- Performing CRUD operations
We can modify the content of a data store.- Create indexes
To perform queries, we must create an index.- Querying data
After you create an index, we can query the data in your database.- Supporting offline storage and synchronization
We can synchronize the data on a mobile device with a remote database instance. You can either pull updates from a remote database to the local database on the mobile device, or push local database updates to a remote database.
Parent topic: Migrating apps from earlier releases