Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: added browser-info to confirm call #171

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Conversation

manideepk90
Copy link
Contributor

This PR will browser/ device details to the confirm call

Comment on lines +305 to +307
device_model: option<string>,
os_type: option<string>,
os_version: option<string>,
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make the type string instead, anyways from native side you are always collecting these and putting them in hyper params

Suggested change
device_model: option<string>,
os_type: option<string>,
os_version: option<string>,
device_model: string,
os_type: string,
os_version: string,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

any way both serve the same purpose, right?

Comment on lines +928 to +930
device_model: getOptionString(hyperParams, "device_model"),
os_type: getOptionString(hyperParams, "os_type"),
os_version: getOptionString(hyperParams, "os_version"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
device_model: getOptionString(hyperParams, "device_model"),
os_type: getOptionString(hyperParams, "os_type"),
os_version: getOptionString(hyperParams, "os_version"),
device_model: getString(hyperParams, "device_model", ""),
os_type: getString(hyperParams, "os_type", ""),
os_version: getString(hyperParams, "os_version", ""),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we need these changes @sh-iv-am?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think so as browser_info is not required for all PMs and connectors.

@aashu331998 aashu331998 merged commit 66449f0 into main Jan 2, 2025
4 of 5 checks passed
@aashu331998 aashu331998 deleted the confirm-params branch January 2, 2025 10:17
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.

5 participants