On Jun 20, 2016, at 8:32 AM, Nick Pomfret <npom...@gmail.com> 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.
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/EOkrycvMnas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/08713E41-25DD-4203-8647-A49A4E3F7407%40couchbase.com.
On Jun 25, 2016, at 11:32 PM, Nick Pomfret <npom...@snowmonkey.co.uk> wrote:Thanks for the reply. Could you point me to the source of these docs you're quoting and I'll try and figure it all out.
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
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;
}
}
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/EOkrycvMnas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/783cd947-3f74-4926-b3ef-100dc24342dd%40googlegroups.com.
On Aug 19, 2016, at 8:27 AM, Nick Pomfret <npom...@snowmonkey.co.uk> wrote:The replicators were created using the REST api (from a react-native app). I want to resume them so tried writing a bit of objective-c to do it as there doesn't seem to be a way using the REST API.
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/EOkrycvMnas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/7A1A53B6-B73A-4316-8D25-3DF9FA46BA83%40couchbase.com.
CBLManager *manager = [CBLManager sharedInstance];
CBLDatabase* database = [manager databaseNamed:dbName error:nil];
CBLReplication* pull = [database createPullReplication:syncURL];
CBLReplication* push = [database createPushReplication:syncURL];
id<CBLAuthenticator> auth = [CBLAuthenticator basicAuthenticatorWithName: userId password: password];
push.authenticator = pull.authenticator = auth;
[pull start];
[push start];
Exception '-[__NSCFString user]: unrecognized selector sent to instance 0x148a7db20' was thrown while invoking startReplication on target ReactCBLite with params (
"http://192.168.1.185:4984/sync_gateway",
"pc_macmini_0_9133f13f-c7d9-41ae-a09f-37cdf906160b",
"9133f13f-c7d9-41ae-a09f-37cdf906160b",
"9fe7d83b-f6b7-4632-b293-a77356b76655"
)
On Aug 19, 2016, at 10:57 AM, Nick Pomfret <npom...@snowmonkey.co.uk> wrote:Exception '-[__NSCFString user]: unrecognized selector sent to instance 0x148a7db20’
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/EOkrycvMnas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/AEB86B9E-E173-49CD-8918-C19CBEF1098B%40couchbase.com.