Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom user agent strings #6267

Closed
cmelchior opened this issue Nov 1, 2018 · 0 comments
Closed

Add support for custom user agent strings #6267

cmelchior opened this issue Nov 1, 2018 · 0 comments
Assignees

Comments

@cmelchior
Copy link
Contributor

cmelchior commented Nov 1, 2018

The latest Sync/ROS release added support for defining a custom user agent string that is sent when creating a session. This can help debugging and identifying problematic clients.

The user agent string consists of 3 parts:

  1. A part defined by Sync
  2. A part defined by us (Realm version / Device / OS version)
  3. A part defined by the user

We need to implement 2) and expose 3) to end users.

Suggested API is:

Realm.init(Context context, String userAgent)

As the UserAgent can only be defined up to the point we the C++ SyncManager this will fit both that and the semantics that the user agent cannot be changed once the Client is started.

Internal ref: https://github.com/realm/realm-sync/issues/2455#issuecomment-432447520

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants