When calling the verification interface for "whether the user belongs to a restricted region", the return value is always false; even if the Apple account is registered as an account belonging to a restricted region and the account is set to supervised mode, the interface return result remains unchanged, and it is impossible to verify a true result. The code for calling the interface is as follows:
@available(iOS 26.2, *)
@objc public func eligibleForAgeFeatures() async -> Bool {
var isEligible = false
do {
isEligible = try await AgeRangeService.shared.isEligibleForAgeFeatures
} catch {
isEligible = false
}
return isEligible
}
Topic:
Privacy & Security
SubTopic:
General
0
0
147