-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: platform#is('desktop') returning true on new Pixel 7 phones #26240
Comments
Thanks for the report. What is the result when you log Similarly, if you log |
Thanks @liamdebeasi, I'll need to get that phone back into my hands so I can try this. (I do not have one, but I can get access to one as needed.) Anything else you can think of for me to record/test so I can do it all at once? (So I don't need to ask this person back over and over :) ) |
If you could also check The
This check should return If |
Okay... I finally got my hands on a Pixel 7 (not pro) again: These are reported both in Chrome and also in Capacitor w/Default factory settings,
And some extra debug info:
Versions:
|
And for reference, as I'm sure you would expect, on my Pixel 6, it appears that the pointers are reported properly:
|
The Pixel 6 results look the same as the Pixel 7 results. Did you mean to copy something else? Here are the results from my Pixel 4a:
I recommend filing some feedback on https://bugs.chromium.org/p/chromium/issues/list regarding this. I don't have access to a Pixel 7 but I will see if someone else on the team has one. |
I am also able to reproduce this using Pixel 7 through browserstack on https://hover-pointer-media-query.glitch.me:
|
Weird. Yeah looks like I pasted the wrong results for the P6. My pixel 6 shows the same as your 4a. |
Yep, sigh.. will do on Monday. |
We're getting the same behavior for pixel 7 and 7 Pro. is Desktop is returned true. |
@ajgomezrivera Thanks. Please go to the chromium issue and add your vote to that too if you don't mind. We need Google to know it's an issue :) |
Is there any update on above issue. Is there any way I can fix this on temporary basis? |
For anyone who faces this issue, currently you can make temporary changes in app.module.ts and override methods which returns browser and mobile properties . you can make changes in App.module file
|
I confirm on the Pixel 7 pro my app is acting like Desktop => isDesktop is returned true. Thanks for @vaibhav65577 for your temporary fix, I will try. Any capacitor permanent update expected ? |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. Thank you for using Ionic! |
Prerequisites
Ionic Framework Version
Current Behavior
On new pixel 7 phones, when the devices screen resolution is set to factory defaults (e.g. "highest" / "smallest" or "make everything as small as possible to show as much as possible" ... max resolution), Ionic apps are reporting that the platform is 'desktop'.
If screen resolution is dropped down by one notch, the platform is properly reported as 'mobile'.
Not sure how best to report this, but this is what we're seeing.
Expected Behavior
The platform should be reported as 'mobile', not 'desktop'.
Steps to Reproduce
Run any ionic app on a Google Pixel 7 with default factory display settings. Platforms will contain 'desktop'.
Code Reproduction URL
No response
Ionic Info
Additional Information
None. Not sure if this issue is related: #24179
The text was updated successfully, but these errors were encountered: