Jobs
Jobs

Reputation: 658

How do i link and sync my ios app to cloudantnosqlite?

Hey i have been using xcode for a month, so please bear with me... I am using ibm's bluemix as backend for my app. Cloudant is the cloud database service that they provide. At this conjecture I need to pass data first to the cloud and then replicate it locally in core data. I just cant seem to figure out how to do this at this point, Could somebody point me in the right direction?

Upvotes: 0

Views: 38

Answers (2)

stwissel
stwissel

Reputation: 20384

If I did understand right: you add data onto the Cloudant database in Bluemix and need to push it out to your mobile data store on the ios devices?

The challenge you face: Cloudant has no idea where the device are and if they are reachable/connected

The steps you take are:

  • Update the Cloudant database
  • Send a PUSH notification using the push notification service in Bluemix
  • Your iOS application needs to be configured to wake up on arrival of such a push notification
  • Execute a sync as described in the documentation (link in previous answer)

That should do the trick. Let us know how it works

Upvotes: 1

Susann Heidemueller
Susann Heidemueller

Reputation: 136

I am sorry for this vague answer but based on your question this is best I can do you. It should get you in the right direction at least. https://github.com/cloudant/CDTDatastore

Upvotes: 0

Related Questions