Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

283
Views
Is there a way to spoof `window.devicePixelRatio` in webview?

I am doing some testing on whether or not it is possible to spoof

// returns the ratio of the resolution in physical pixels to the resolution in CSS pixels
window.devicePixelRatio

// when this javascript code is run on a Pixel 4
window.devicePixelRatio == 2.75

// when this javascript code is run on a iPhone 8
window.devicePixelRatio == 2.00

Is it possible to configure WebView.getSettings() to change this value programmatically?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!