{"action":"created","issue":{"url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/90","repository_url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite","labels_url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/90/comments","events_url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/90/events","html_url":"https://github.com/couchbaselabs/react-native-couchbase-lite/issues/90","id":179736484,"number":90,"title":"Getting CBL iOS working in the background","user":{"login":"npomfret","id":5489469,"avatar_url":"https://avatars.githubusercontent.com/u/5489469?v=3","gravatar_id":"","url":"https://api.github.com/users/npomfret","html_url":"https://github.com/npomfret","followers_url":"https://api.github.com/users/npomfret/followers","following_url":"https://api.github.com/users/npomfret/following{/other_user}","gists_url":"https://api.github.com/users/npomfret/gists{/gist_id}","starred_url":"https://api.github.com/users/npomfret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npomfret/subscriptions","organizations_url":"https://api.github.com/users/npomfret/orgs","repos_url":"https://api.github.com/users/npomfret/repos","events_url":"https://api.github.com/users/npomfret/events{/privacy}","received_events_url":"https://api.github.com/users/npomfret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-28T10:32:16Z","updated_at":"2016-10-09T09:24:27Z","closed_at":null,"body":"I'm seeing lots of errors when my app is backgrounded.  It seems that after a while neither background fetch or push notifications adequately wake the app up.  I understand that the solution might be to set the file protection mode.   But I don't really understand how to do this. I tried making the following change (a completed guess) to ReactCBLite.m\r\n\r\n```\r\n        //CBLManager* dbmgr = [CBLManager sharedInstance];\r\n        NSString* dir = [CBLManager defaultDirectory];\r\n        CBLManagerOptions options = {};\r\n        options.fileProtection = NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication;\r\n        NSError* error;\r\n        CBLManager* dbmgr =   [[CBLManager alloc] initWithDirectory: dir options: &options error: &error];\r\n\r\n```\r\nBut it didn't work.  My databases aren't available to the listener. Any ideas?"},"comment":{"url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/comments/252475192","html_url":"https://github.com/couchbaselabs/react-native-couchbase-lite/issues/90#issuecomment-252475192","issue_url":"https://api.github.com/repos/couchbaselabs/react-native-couchbase-lite/issues/90","id":252475192,"user":{"login":"npomfret","id":5489469,"avatar_url":"https://avatars.githubusercontent.com/u/5489469?v=3","gravatar_id":"","url":"https://api.github.com/users/npomfret","html_url":"https://github.com/npomfret","followers_url":"https://api.github.com/users/npomfret/followers","following_url":"https://api.github.com/users/npomfret/following{/other_user}","gists_url":"https://api.github.com/users/npomfret/gists{/gist_id}","starred_url":"https://api.github.com/users/npomfret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npomfret/subscriptions","organizations_url":"https://api.github.com/users/npomfret/orgs","repos_url":"https://api.github.com/users/npomfret/repos","events_url":"https://api.github.com/users/npomfret/events{/privacy}","received_events_url":"https://api.github.com/users/npomfret/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T09:24:27Z","updated_at":"2016-10-09T09:24:27Z","body":"Any chance you guys could upvote https://github.com/couchbase/couchbase-lite-ios/issues/1410 (not sure it will help but worth a try!)"}}
{"actor":{"display_login":"npomfret"}}