My car no longer recognizes media on my iPhone 7 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!
I figured out how to fix it:

(You Must Have Apple Music with one song at least). 


Power cycle your phone by powering off and powering on.
Open Apple Music and play any downloaded song.
Connect USB/lightning cable while the music still playing on the phone.


Now you can see the song name on the screen and controllable by steering wheel, and you can use any app that plays music it will be compatible.