π How to use it:
- Open DevTools (F12 or Ctrl+Shift+I in Chrome).
- Go to the More tools > Sensors tab.
1οΈβ£ Override Geolocation
Simulates the userβs location anywhere in the world.
Example: If youβre developing a location-based app, you can test how it behaves in New York, Tokyo, or Buenos Aires without moving.
2οΈβ£ Simulate Device Orientation
Modifies accelerometer and gyroscope values to test device rotation changes.
Example: If youβre building an augmented reality app or a responsive website, you can check how it behaves when rotating the device.
3οΈβ£ Force Touch Events
Simulates touch interactions on mobile devices.
Example: If youβre optimizing touch gestures (swipes, pinches, long presses), you can test them without a physical device.
4οΈβ£ Emulate an Inactive Sensor
Simulates disabled or inactive sensors, such as proximity detection.
Example: Useful for testing how an app behaves when certain sensors are unavailable on the userβs device.
π Have you tried these options in your projects? π
βΉοΈ More info on Googleβs website:
https://developer.chrome.com/docs/devtools/sensors?hl=en
Top comments (0)