We are using phonegap/cordova application running on Android tablet. We post the login credentials(Client/tablet) to an existing authentication service that connects to syncgateway admin port and creates a user and obtains a session from sync gateway. Now how do I use this session/cookie from my client requests so that we can get the channel set up working properly for particular users. Also what does this below statement mean, this is from the Couchbase Sync Gateway Documentation. What does your app’s API mean in this.
Subsequent client requests to the gateway will now include the session in a cookie, which the gateway will recognize. For the cookie to be recognized, your site must be configured so that your app’s API and the gateway appear on the same public host name and port.
It will be very helpful if you can point me in the direction.
Thank you all for all the help!