We have all been there. You are having a nice peaceful drive home from work and you hear your phone buzz or ring. The first reaction is to check the phone to make sure there isn't some sort of emergency that needs your attention. In a best case scenario you would find a spot to pull over, park your car, and then check your notification. More often people just grab their phone and respond to whatever notification they have just received while they drive.
Google understands that notifications are incredibly tempting. They have baked a new safety feature into the Pixel 2 and Pixel 2 XL which allows your phone to enter do not disturb mode when you are driving. The app is listed as "Pixel Ambient Services". The service can be activated and deactivated so you aren't forced to use it, but it is a nice option to have. It seems like this would even activate if you were a passenger and not driving since it uses the phone's sensors to determine if you are driving. Apparently it will only work if you are connected to your car's bluetooth. You can download the app from the PlayStore now.
via Android Police