Skip to content

fix: make iOS requests recognized by backend#159

Merged
abelonogov-ld merged 1 commit intomainfrom
andrey/simple-user-agent
Mar 18, 2026
Merged

fix: make iOS requests recognized by backend#159
abelonogov-ld merged 1 commit intomainfrom
andrey/simple-user-agent

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Mar 18, 2026

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-Agent default header to outgoing GraphQL requests, with no change to request/response handling beyond the extra header.

Overview
Adds a default User-Agent: iOS header to GraphQLClient’s defaultHeaders, 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.

(cherry picked from commit 1b0a407)
@abelonogov-ld abelonogov-ld changed the title fix: Add simple user-agent to make gonfalon recognize iOS fix: make iOS requests recognized by backend Mar 18, 2026
@abelonogov-ld abelonogov-ld merged commit 2155896 into main Mar 18, 2026
9 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/simple-user-agent branch March 18, 2026 21:07
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
* main:
  chore(main): release 0.26.1 (#160)
  chore: test app memory leaks (#158)
  fix: make iOS requests recognized by backend (#159)
  chore: Dialogs examples in TestApp (#157)

# Conflicts:
#	TestApp/Sources/AppDelegate.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants