VideoSuscriberAccount - Apple SSO asks for permissions also in countries not supported by Apple SSO

Originator:mlaskow3
Number:rdar://34252893 Date Originated:9/5/2017
Status:Open Resolved:
Product:iOS SDK Product Version:10.3
Classification:Other Bug Reproducible:Always
 
Area:
Something not on this list

Summary:
There is currently no way to tell if a device supports Apple SSO. If I am using a device with US App Store, I see an option in settings to sign in/out with my cable provider.
If I am as using a device with Polish App Store, the TV provider option disappears from settings - Apple SSO is not available.
But when I launch my app, when it calls VSAccountManager.checkAccessStatus it still asks the user if it can use provider information (makes no sense since this information is not available on the device), only later VSAccountMetadataRequest fails with VSError.unsupportedProvider - which is kinda true, but this is the same error that is returned when I tap 'Other TV provider' on the Apple SSO picker screen.

Steps to Reproduce:
Launch an app that uses Apple SSO, with a user signed in to a non-US App Store.

Expected Results:
VSAccountManager.checkAccessStatus does not ask user for a permission to use Apple SSO. It should return an error (access not granted kind of makes sense, but other code like 'notSupported' would make more sense)

Actual Results:
VSAccountManager.checkAccessStatus returns granted if a user agrees, and only later VSAccountMetadataRequest fails with unsupportedProvider error. 

Version/Build:
10.3

Configuration:
User signed in with an Apple ID connected to a non-US App Store (one that does not support Apple SSO).

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!