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 missing detection for many Kindle Fire devices #540

Closed
wants to merge 1 commit into from

Conversation

a5ob7r
Copy link

@a5ob7r a5ob7r commented Oct 11, 2023

The previous regex to detect Kindle Fire devices is incomplete, so it can only detect Kindle Fire (1st Gen) and Kindle Fire HD 7 (2nd Gen). The reason why is that it uses a device specific identifier, which is referenced as Build Model in the document.

We can fix this problem by using the more generalized regex to detect many other Kindle Fire devices. The regex is from the official document, but with a little tweaking for simplification. The original regex is for not only detecting the devices but also extracting Build Models and version number of the browser, which we do not need to do them.

https://docs.aws.amazon.com/silk/latest/developerguide/detecting-silk-ua.html

Thank you for this great gem.

Best Regards.

The previous regex to detect Kindle Fire devices is incomplete, so
it can only detect Kindle Fire (1st Gen) and Kindle Fire HD 7 (2nd Gen).
The reason why is that it uses a device specific identifier, which is
referenced as Build Model in the document.

We can fix this problem by using the more generalized regex to detect
many other Kindle Fire devices. The regex is from the official document,
but with a little tweaking for simplification. The original regex is for
not only detecting the devices but also extracting Build Models and
version number of the browser, which we do not need to do them.

https://docs.aws.amazon.com/silk/latest/developerguide/detecting-silk-ua.html
@fnando fnando closed this in 808a87a Apr 30, 2024
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.

None yet

1 participant