question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: platform#is('desktop') returning true on new Pixel 7 phones

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

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

mshark:topdecked-unified lincoln$ ionic info

Ionic:

   Ionic CLI                     : 6.20.1 (/Users/lincoln/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.3.4
   @angular-devkit/build-angular : 14.2.8
   @angular-devkit/schematics    : 14.2.8
   @angular/cli                  : 14.2.8
   @ionic/angular-toolkit        : 7.0.0

Capacitor:

   Capacitor CLI      : 4.4.0
   @capacitor/android : 4.4.0
   @capacitor/core    : 4.4.0
   @capacitor/ios     : 4.4.0

Utility:

   cordova-res : not installed globally
   native-run  : 1.7.1

System:

   NodeJS : v16.14.0 (/Users/lincoln/.nvm/versions/node/v16.14.0/bin/node)
   npm    : 8.3.1
   OS     : macOS Monterey

Additional Information

None. Not sure if this issue is related: https://github.com/ionic-team/ionic-framework/issues/24179

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lincolnthreecommented, Nov 11, 2022

Weird. Yeah looks like I pasted the wrong results for the P6. My pixel 6 shows the same as your 4a.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pixel 7 and 7 Pro problems and how to fix them
We take a look at some common Google Pixel 7 and 7 Pro problems and offer potential solutions on how to fix them....
Read more >
Google Pixel 7 review: hard to resist, but a bit of a risk
The $599 Google Pixel 7 is a great smartphone with a fantastic camera, ... Slow charging; Software bugs; Poor gaming performance.
Read more >
Pixel 7 - Google Store
Google Pixel 7 is super fast and responsive, with an adaptive battery and so ... The powerful new processor is custom built with...
Read more >
GrapheneOS: Frequently Asked Questions
Pixel 7 ; Pixel 6a; Pixel 6 Pro; Pixel 6. Newer devices have more of their 5 year minimum guarantee remaining but the...
Read more >
Android 12: Everything you need to know about Google's new ...
Developer Previews are also restricted to supported Google Pixel devices. Android 12 Beta. After a couple of Developer Preview releases, we made ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found