I'm trying to get the Track ID for a song from an MPMediaItem.
For example, I have this song in my library:
https://music.apple.com/us/album/up-up-and-away/1442898889?app=itunes&i=1442898899
The number "1442898899" in this URL is a track ID.
When I get the MPMediaItem for this track in my app, I can't find that number anywhere. I've examined all of the properties of MPMediaItem. There is one called MPMediaEntityPropertyPersistentID which I thought would contain this value, but it is a different number.
How do I get the number I need?
Thanks,
Frank