Closed gardin-davidl closed 8 months ago
Thanks for bringing this to our attention @gardin-davidl the original regular expression to detect the user agent can use an update for sure.
@gardin-davidl, the fix for this issue is referenced above in PR #12661 and is currently on @unstable
(6.0.7-unstable.829723b.0) which is pending release. Feel free to give it a try and let us know if it resolves your issue!
Looking good, thank you! Appreciate the quick turn-around.
@gardin-davidl with v6.0.7 now live, I'll close out this issue. Feel free to comment back if you (or anyone else) experiences further problems!
Before opening, please confirm:
JavaScript Framework
Not applicable
Amplify APIs
Analytics
Amplify Categories
analytics
Environment information
Describe the bug
When using the Analytics category to create endpoints in Pinpoint, Microsoft Edge is incorrectly identified as Google Chrome. This is because the "getBrowserType" function in the "getClientInfo" utils file only matches "Trident" and "Edge", when the Edge user agents are "Edge", "Edg", "EdgA" and "EdgiOS".
Expected behavior
Pinpoint endpoints are created reliably for Microsoft Edge.
Reproduction steps
console.info(window.navigator)
. The issue can only be reproduced if the user agent contains "Edg" (Windows / Mac) or "EdgA" (Android) or "EdgiOS" (Apple).Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response