> On Jun 20, 2016, at 8:32 AM, Nick Pomfret <[email protected]> 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.

Did you set the CBLReplication's `suspended` property to NO?

/** Suspends/resumes a replication.
    On iOS a replication will suspend itself when the app goes into the 
background, and resume
    when the app is re-activated. If your app receives a push notification 
while suspended and needs
    to run the replication to download new data, your handler should set 
suspended to NO to resume
    replication, and then set the property back to YES when it's done. */
@property BOOL suspended;

—Jens

-- 
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/08713E41-25DD-4203-8647-A49A4E3F7407%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to