My app has been rejected by Apple :( The issue reported is
The application does not detect the songs on the iPad.
I already tried to have all the tests I can in order to understand the issue, but on MY ipad and on MY songs, everything works 100% fine.
In my code I'm handling the situation of an empty library in the following way:
MPMediaQuery *albums = [MPMediaQuery albumsQuery];
NSArray *albumCollections = [albums collections];
if ([albumCollections count] > 0) {
// everything fine, let's start
}
else {
// display an UIAlertView warning the user that the library is empty and stop
}
Now Apple just sent me a screenshot to display that the UIAlertView it's always showing up, even if they state they have songs on the iPad.
What can be the issue? Can maybe albumCollections
be empty even if there are songs on the device? Any help is greatly appreciated, I put lot of effort in the app and seeing it rejected for a reason I'm not able to reproduce is so frustrating :(