Defines events that provide information about the distance between a device and an object, as measured by a proximity sensor. The vicinity occasions are a convenient method to know when a client is near a gadget. These occasions make it conceivable to respond to such a change, for instance by closing down the screen of a cell phone when the client is having a telephone call with the gadget near their ear. At the point when the gadget closeness sensor identifies a change between the gadget and a protest, it tells the program of that change. At the point when the program gets such a notice, it fires a DeviceProximityEvent for any change, and a UserProximityEvent occasion on account of an all the more unpleasant change. This occasion can be caught at the window protest level by utilizing the addEventListener strategy (utilizing the deviceproximity or userproximity occasion name) or by connecting an occasion handler to the window.ondeviceproximity or window.onuserproximity properties.
Test your Web App on LambdaTest
With LambdaTest you can test your website on 2000+ browser and OS combinations for cross browser compatibility issues and ensure that your webpage fallbacks are working fine on browsers that do not support
BROWSER SUPPORT FOR
Chrome 4 to 67 does not support for
Proximity API is not supported by Mozilla Firefox browser version 2 to 14.
Proximity API is supported by Mozilla Firefox browser version 15 to 61.
IE browser version 6 to 11 doesn't support
Safari browser version 3.1 to 11.1 doesn't support
Microsoft Edge browser version 12 to 17 does not support this property
Opera version 10.1 to 53 doesn't support
Information sourced from
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Other Browser Elements and Properties
All websites and webapps use collections of a lot of browser technologies and elements. Not all of these elements are supported by all browsers and browser versions. At LambdaTest you can test your website on all browsers and browser versions and easily debug browser compatibility issues in real time.
Fastest Way for Cross Browser Testing
You can test your website for cross browser compatibility across all Firefox browser versions using LambdaTest
Perform cross browser testing of your website/ webapp across all Chrome browser versions using LambdaTest
Check your website on all Safari browser on Mac and Windows for cross browser compatibility with LambdaTest
Perfrom cross browser testing of your website/ web app across all IE verions using LambdaTest
Our plans starts with a free plan where you access to all features and free 60 minutes of live testing per month.
Need support for a larger team? We have very flexible plans and if they don’t suffice, leave us a message here, and we would help you out.