If you are using replication.setCookie() (which is the recommended
approach), then you shouldn't need to call
replication.getHeaders().put("Cookie", cookie); or any other API calls
related to setting the cookie.TodoLite-Android <https://github.com/couchbaselabs/ToDoLite-Android> was recently updated to have the ability to call replication.setCookie(). If you change: private AuthenticationType authenticationType = AuthenticationType.FACEBOOK; to private AuthenticationType authenticationType = AuthenticationType.CUSTOM_COOKIE; then when you login it will prompt you for a Cookie. To create a valid session cookie, you can create a new session by using curl to make a new session on the Sync Gateway (sorry I don't have an example handy). If you are still seeing the same problem with TodoLite-Android, then file an issue on github with exact steps to reproduce. If not, then you should compare the code w/ your app to see what you are doing differently. https://github.com/couchbaselabs/ToDoLite-Android On Thu, May 22, 2014 at 5:58 PM, Brian Hardy <[email protected]> wrote: > I was trying to set the name of the cookie to the same value I used in the > CookieManager and then set the value to the full cookie string. I thought > that might be the problem. My pull replicator continues to work them but I > have the push sync problem I originally wrote about so I assume the name > should be "SyncGatewaySession" and the value should the the value from > the SyncGatewaySession name value pair in the cookie. Any advice? > > Thanks > > -- > 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/1d41107b-38c3-4d6c-a9b4-ee3526740b31%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/1d41107b-38c3-4d6c-a9b4-ee3526740b31%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CACSSHCHw7%2BqzjJyEM3As8a5PgBVBcV5H-9statWJwskDsFq2xg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
