Search code examples
ioscocoa-touchparse-platformlocaldatastore

Can't enable Parse Local Datastore


I'm trying enable the Parse Local Datastore. In the Parse Docs, they said to put the code enableLocalDatastore before setApplicationId:clientKey:, but this throws an exception:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You have to call setApplicationId:clientKey: on Parse to configure Parse.'


Solution

  • v1.6.0

    Place the code for enableLocalDatastore after setting applicationId and clientKey. It looks like it was simply a mistake in their documentation.

    v1.6.1+

    Place the code for enableLocalDatastore before setting applicationId and clientKey.