Why is the browser name missing the userAgent string of the browser when running the MAUI Blazor project on iPad? How to manually set the userAgent in the MAUI Blazor project? #23371
Unanswered
MAUIBlazorDeveloper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on an MAUI blazor project. I am running it on an iPad using MAC. In that project, I am performing the drag operation based on the browser name present on the browser userAgent(Type navigator.userAgent in the browser developer tool console and press enter). Normally the userAgent property contains the name of the browser in it. However, upon running the MAUI blazor project on an iPad device. If I check the browser developer tools in Safari browser it doesn't contain the browser name. Because of that, I am having trouble handling the drag operation. Can anyone help me find out why the browser name is missing? Also, let me know if it's possible to set the userAgent manually in the MAUI Blazor project.
userAgent string upon running the MAUI Blazor project on iPad: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko)"
userAgent string upon a webpage opened in the browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.6 Safari/605.1.15"
Beta Was this translation helpful? Give feedback.
All reactions