From cb94755cc747e503eff5b14455c9146979950637 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Wed, 27 Nov 2024 16:34:16 -0300 Subject: [PATCH] Fix agent string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, not the platform. [1] https://github.com/ably/specification/issues/201 --- Sources/AblyChat/Version.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AblyChat/Version.swift b/Sources/AblyChat/Version.swift index ca79481c..afe2fc2c 100644 --- a/Sources/AblyChat/Version.swift +++ b/Sources/AblyChat/Version.swift @@ -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]