I tried a basic brute force approach and just try and turn them all on:
CBLManager *manager = [CBLManager sharedInstance];
NSArray* dbNames = [manager allDatabaseNames];
for (id name in dbNames) {
CBLDatabase* db = [manager databaseNamed:name error:nil];
NSArray* replications = [db allReplications];
for(CBLReplication* rep in replications) {
rep.suspended = false;
}
}
But the list of replications returned by the call to allReplications is
empty.
On Friday, 19 August 2016 10:57:26 UTC+1, Nick Pomfret wrote:
>
> Sorry, I'm struggling with this a bit (not a iOS programmer!). I have a
> method in my AppDelegate
>
> -(void)application:(UIApplication *)application
> didReceiveRemoteNotification:(NSDictionary *)notification
> fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
> {
>
> in which I'd like to switch on the replicator temporarily. But I don't
> know how to get access to it in order to switch it on.
>
> On Monday, 20 June 2016 13:32:15 UTC+1, Nick Pomfret wrote:
>>
>> I'm trying to get couchbase lite (on iOS for now) to sync documents when
>> its awoken in the background from a push notification. So far I can accept
>> and process a notification while the app is in the background. And I have
>> given it 10 seconds before the completionHandler gets called. But
>> during that 10 seconds I can't see any activity.
>>
>> Any pointers on what I've missed would be appreciated.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/e4029345-c17f-4756-b60a-9d317c66fc26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.