PRXSynchronisationManager Protocol Reference
– synchroniseWithSuccess:failure:required method
Synchronises the local cache with the data stored on TapPoint. This should be called after application authentication.
- (void)synchroniseWithSuccess:(PRXSynchronisationSuccessBlock)successBlock failure:(PRXSynchronisationFailureBlock)failureBlock
Block called when synchronisation succeeds. You should use this block to perform additional steps that depend on successful synchronisation.
Block called when synchronisation fails. This block contains an NSError argument describing the cause of the error.
Synchronisation can fail for several reasons, for example if the network connection is not functioning. Your application should inspect the NSError object that is returned in the failure block of this method and decide whether it is possible to recover. This might mean listening for when the network connection status changes so that the application can attempt to synchronise again.