Return the user's loved songs from their Music library on iOS. Not sure if this is possible. After some quick research, it seems Apple never exposed this... It seems you can only get the rating.
Stack Overflow question about it: https://stackoverflow.com/questions/48287863/how-to-get-set-loved-state-in-mpmediaitem
However, it might be possible to fetch it from the Apple Music API:
Help wanted if anyone has more insight.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too