+

Search Tips   |   Advanced Search

Enable JSONStore

To use JSONStore in IBM Worklight v6.0 and later, we must take steps to enable it.

To use JSONStore in a native MobileFirst iOS application, we can import the JSONStore.h header file to use the JSONStore API. For more information about creating native MobileFirst iOS applications, see Develop native applications for iOS.

For native Android applications, copy the JAR files that are generated by MPF into the application's libs folder. After you do so, we can use the classes inside the com.worklight.jsonstore.api package to use JSONStore. For more information about creating native MobileFirst Android applications, see Copy files of Native API applications for Android.

For hybrid applications, JSONStore is an optional feature in IBM Worklight v6.0 and later. To use JSONStore in a hybrid application, we must enable it by modifying application-descriptor.xml.

  1. Use the Application Descriptor Editor, open the file application-descriptor.xml

  2. Click the Design tab.

  3. Under Overview, expand Application [your application's name].

  4. Click Optional Features.

  5. Click Add.

  6. Select JSONStore.

  7. Click Ok.

  8. In the Project Explorer view, right-click the folder that is titled with the application name.

  9. Click Run As.

  10. Click Run on MobileFirst Development Server.


Parent topic: JSONStore