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

fix: Add by default the flagship UA on SupervisedWebview #1164

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

Crash--
Copy link
Contributor

@Crash-- Crash-- commented Feb 8, 2024

We saw in our log that some requests didn't have the flagship UA. Mostly the ones on the PasswordView:

2024-02-06T06:22:02.095Z 200 Mozilla GET https://XXX.mycozy.cloud/assets/fonts/Lato-Bold.immutable.woff2

It was hard for us to know whether a user had only used the flagship app or not.

So instead of adding the userAgent on each webview, I decided to add it to the SupervisedWebview since each webview rely on it. Like that, if we want to override the props, we can, but by default the flagship UA agent is set.

So I removed all the applicationNameForUserAgent that call the SupervisedWebview

I didn't test anything.

Checklist

Before merging this PR, the following things must have been done:

  • Faithful integration of the mockups at all screen sizes
  • Tested on iOS
  • Tested on Android
  • Localized in English and French
  • All changes have test coverage
  • Updated README & CHANGELOG, if necessary

We saw in our log that some requests didn't have the flagship UA. Mostly
the ones on the PasswordView:

`
2024-02-06T06:22:02.095Z  200  Mozilla  GET
https://XXX.mycozy.cloud/assets/fonts/Lato-Bold.immutable.woff2
`

It was hard for us to know whether a user had only used the flagship
app or not.

So instead of adding the userAgent on each webview, I decided to add it
to the SupervisedWebview since each webview rely on it. Like that, if
we want to override the props, we can, but by default the flagship UA
agent is set.

So I removed all the `applicationNameForUserAgent` that call the
SupervisedWebview
@Crash-- Crash-- merged commit 6de8a07 into master Feb 8, 2024
1 check passed
@Crash-- Crash-- deleted the fix/UAForWebview branch February 8, 2024 09:54
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.

3 participants