Skip to content

Commit

Permalink
Fix agent string
Browse files Browse the repository at this point in the history
We don’t have a proper solution for analytics yet ([1] is on hold and
has been removed from mobile beta scope), but in a conversation in the
team we decided that we might as well at least keep the `agent` channel
parameter, which will give us information about channel attaches. So,
name it in line with the JS SDK, which uses "chat-js"; i.e. use the name
of the programming language ("ios" is misleading since we might be
running on macOS or tvOS).

[1] ably/specification#201
  • Loading branch information
lawrence-forooghian committed Nov 27, 2024
1 parent 5923c21 commit 6937761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AblyChat/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import Ably
// Version information
internal let version = "0.1.0"

internal let channelOptionsAgentString = "chat-ios/\(version)"
internal let channelOptionsAgentString = "chat-swift/\(version)"

internal let defaultChannelParams = ["agent": channelOptionsAgentString]

0 comments on commit 6937761

Please sign in to comment.