fix: make iOS requests recognized by backend#159
Merged
abelonogov-ld merged 1 commit intomainfrom Mar 18, 2026
Merged
Conversation
(cherry picked from commit 1b0a407)
mario-launchdarkly
approved these changes
Mar 18, 2026
abelonogov-ld
pushed a commit
that referenced
this pull request
Mar 18, 2026
🤖 I have created a release *beep* *boop* --- ## [0.26.1](0.26.0...0.26.1) (2026-03-18) ### Bug Fixes * make iOS requests recognized by backend ([#159](#159)) ([2155896](2155896)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk release bookkeeping only: version bumps and changelog/podspec updates, with no functional code changes in this diff. > > **Overview** > Bumps the library release from `0.26.0` to `0.26.1` across release metadata (`.release-please-manifest.json`), CocoaPods specs, and `Sources/LaunchDarklyObservability/Version.swift`. > > Updates `CHANGELOG.md` with the `0.26.1` entry noting the iOS request recognition backend bug fix. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 2a54e94. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
abelonogov-ld
added a commit
that referenced
this pull request
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds simple user-agent to make gonfalon recognize iOS. Later should be made proper but it should be here until gonfalon update
Later should be similar to this
// func buildUserAgent(sdkVersion: String) -> String {
// let device = UIDevice.current
// let osVersion = device.systemVersion.replacingOccurrences(of: ".", with: "_")
// let model = device.model // "iPhone" or "iPad"
// let buildNumber = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "0"
//
// if model == "iPad" {
// return "Mozilla/5.0 ((model); CPU OS (osVersion) like Mac OS X) Mobile/(buildNumber) YourSDK/(sdkVersion)"
// } else {
// return "Mozilla/5.0 ((model); CPU (model) OS (osVersion) like Mac OS X) Mobile/(buildNumber) YourSDK/(sdkVersion)"
// }
// }
Note
Low Risk
Low risk: adds a static
User-Agentdefault header to outgoing GraphQL requests, with no change to request/response handling beyond the extra header.Overview
Adds a default
User-Agent: iOSheader toGraphQLClient’sdefaultHeaders, ensuring all GraphQL requests identify as iOS unless explicitly overridden by per-call headers.Written by Cursor Bugbot for commit 164b955. This will update automatically on new commits. Configure here.