The Pixel 2 and Pixel 3 both have a feature called Now Playing that automatically identifies music playing from nearby sources. It’s a neat trick that’s currently significantly better on the Pixel 3, which provides a history of identified songs. That functionality gap will be closing in the near