Post not yet marked as solved
I’ve noticed that other apps do not have this option, and I’d like to change my app to offer this.
Please clarify what the other apps do to activate Face/Touch ID.Also, keep in mind the iOS human interface guidelines:Initiate authentication only in response to user action. An explicit action, like tapping a button, ensures that the user wants to authenticate. In the case of Face ID, it also increases the likelihood that the user is facing the camera.
Post not yet marked as solved
https://api.music.apple.com/v1/me/library/playlistsDocumentation: https://developer.apple.com/documentation/applemusicapi/get_all_library_playlists
WWDC 2017 session 502 (https://developer.apple.com/videos/play/wwdc2017/502/) and its sample code (https://developer.apple.com/sample-code/wwdc/2017/Interacting-with-Apple-Music-Content.zip) explain almost everything you want to do, but they're in Swift. Because the Apple Music features came out in the last few years during the Swift era, you are not going to find many Objective-C resources for Apple Music.Regarding the error messages: I think those errors are unrelated, so you don't need to do anything about them.If you need anything else, feel free to ask here.
You need to ask the user for permission first.First, add the NSAppleMusicUsageDescription key to your Info.plist file. This key contains the reason that you need the Apple Music permission, which is displayed to the user. If you don't include this key, your app will automatically crash.Then, check the cloud service authorization, like this:- (void)checkPermissions {
SKCloudServiceAuthorizationStatus status = SKCloudServiceController.authorizationStatus;
switch (status) {
case SKCloudServiceAuthorizationStatusNotDetermined:{
// Not determined: ask for permission.
[SKCloudServiceController requestAuthorization:^(SKCloudServiceAuthorizationStatus status) {
[self checkPermissions];
}];
break;
}
case SKCloudServiceAuthorizationStatusAuthorized:
// Authorized: proceed.
break;
default:
// Denied or restricted: do not proceed.
break;
}
}After you get SKCloudServiceAuthorizationStatusAuthorized, you can then call the rest of your code.
Please be more specific: What exactly are you trying to do with Apple Music? Play a song, album, etc.? Search for something in the Apple Music catalog?
Post not yet marked as solved
FYI, I filed bug #46749780 for this problem.
Post not yet marked as solved
You say that you are using a delay as a workaround. Are you using GCD dispatch after? Like this:dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[MPPlayableContentManager.sharedContentManager reloadData];
});
Post not yet marked as solved
The Apple Music APi reference does not mention any information about lyrics, so we can assume that it is not possible.
Post not yet marked as solved
I changed the device language to Spanish (for an app localized for Spanish), and this is what I got: ibb.co/jLZx3VH Everything is localized correctly except for the "Choose 1 to 7 invitees" text.In your screenshot, all the text is English, which is different from what I got. What device language are you using? And what languages is your app localized for?Regardless, all the text should be translated by Apple, and it looks like some translations are missing. You should file a bug report for the translations to be added.
Nothing is 100% secure. I have a strong password, and GitLab uses the recommended security practices. So GitLab is definitely secure for my purposes (storing the proprietary source code of my apps). If you are interested in the details, see their security and privacy policies: about.gitlab.com/security/ and about.gitlab.com/privacy/
Post not yet marked as solved
You should try the Multipeer Connectivity framework: https://developer.apple.com/documentation/multipeerconnectivity
Post not yet marked as solved
The help page you linked to says the following:For iPhone, screenshots for 5.5-inch devices (iPhone 6s Plus, iPhone 7 Plus, iPhone 8 Plus) are required. Screenshots for iPhone XS Max are optional. These screenshots will scale down for iPhone XR, iPhone XS, and iPhone X.For iPad, screenshots for 12.9-inch iPad Pro (2nd generation) are required. These screenshots will be scaled down appropriately to other device sizes when viewed on the App Store in each territory. Screenshots for 12.9-inch iPad Pro (3rd generation) are optional. These screenshots will scale down for 11-inch iPad Pro, but not for older iPad devices.App previews can scale down in the same way.So you should submit two app previews: one for iPhone 6.5" (886x1920) and one for iPhone 5.5" (1080x1920). These two previews will be scaled down to all other iPhone sizes.
Post not yet marked as solved
I just submitted bug #45947634 for this. In the future, feel free to submit bug reports for problems with the documentation: https://developer.apple.com/bug-reporting/