Complete the code to set the app's display name in the Info.plist file.
"CFBundle[1]Name" : "MyApp"
The key CFBundleDisplayName sets the app's display name shown on the home screen.
Complete the code to request user permission for notifications.
UNUserNotificationCenter.current().requestAuthorization(options: [.[1]]) { granted, error in // Handle response }
The alert option requests permission to show alerts to the user.
Fix the error in the code to check if the app has camera access permission.
switch AVCaptureDevice.authorizationStatus(for: .[1]) { case .authorized: print("Access granted") default: print("Access denied") }
The correct media type for camera permission is .video.
Fill both blanks to add a privacy usage description for camera access in Info.plist.
"NS[1]UsageDescription" : "[2] is needed to take photos."
The key NSCameraUsageDescription is required to explain why the app needs camera access. The value should be a user-friendly message.
Fill all three blanks to handle app review guideline compliance by checking if user agreed to terms before enabling features.
if userDefaults.bool(forKey: "[1]") { enableFeature() } else { showAlert(title: "[2]", message: "Please accept the [3] to continue.") }
This code checks if the user accepted the terms before enabling a feature. If not, it shows an alert asking to accept the terms.