I recently switched to Spotify after using the Apple Music app. My car was able to recognize the song name and time, etc.
After I switched to Spotify and deleted Music, my car doesn't recognize anything anymore -- it just plays the music without any information. I am using a Lightning cable to connect my iPhone 7 (running iOS 12.0) to Mazda 6 2017.
Before deleting Music app:
After deleting Music app:
but my friend's iPhone is working with my car so the issue with My iPhone!