Skip to content

feat: add widget_id to the widget url as a query string parameter - #26

Merged
gcg merged 1 commit into
mainfrom
feature/add-widget-id
Sep 21, 2026
Merged

gcg merged 1 commit into
mainfrom
feature/add-widget-id

Conversation

@gcg

@gcg gcg commented Sep 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@gcg gcg self-assigned this Sep 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new widgetId parameter to both the Android and iOS SDKs, allowing it to be appended as a query parameter to the widget URL. However, inserting widgetId in the middle of existing parameters breaks backward compatibility for existing positional calls in both Kotlin and Swift. The feedback recommends reordering the parameters in public APIs and internal methods so that widgetId is placed after existing parameters with a default value of null (or nil), and updating all corresponding calls and tests to maintain compatibility.

Comment thread ios/Sources/PoltioSDK/UI/PoltioOverlayManager.swift
Comment thread ios/Sources/PoltioSDK/UI/PoltioWebViewController.swift
Comment thread ios/Sources/PoltioSDK/UI/PoltioWebViewController.swift
Comment thread ios/Sources/PoltioSDK/UI/PoltioWebViewController.swift
Comment thread ios/Tests/PoltioSDKTests/PoltioSDKTests.swift
@gcg
gcg requested review from a team, cantugdonmez, hionay and onurhanavci September 21, 2026 06:34
@gcg
gcg merged commit 86382fe into main Sep 21, 2026
5 checks passed
@gcg
gcg deleted the feature/add-widget-id branch September 21, 2026 08:05
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.

4 participants