What did you end up doing? My XL is having this problem. Do. i need to go get a new phone?
The problem for me was a screen protector that had a black portion that matched the phone bezel. It was blocking the sensor.
What did you end up doing? My XL is having this problem. Do. i need to go get a new phone?
Screen protector is off and my still does it randomlyi had the same problem and was about to trade in my new Pixel XL 2. Before you replace your screen protector or do a factory reset, take a soft cloth (preferably microfiber) and clean the top part of your screen really well, with a little elbow grease. I did this and my proximity sensor works perfectly again. the recent 8.1 update may have changed the settings for the sensor, making it to where any oils or dust in the way prevent it from working. good luck!