call kit does not report Do Not Disturb setting of "Only while iPhone is Locked"

Originator:chrispan.fb
Number:rdar://32540260 Date Originated:6/2/2017
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Area:
CallKit

Summary:
If the iPhone's Do Not Disturb settings are enabled, and set to "Only while iPhone is Locked", and the phone is locked during an incoming call. CallKit does not report CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb. If it's set to "Always", Callkit does correctly report the error code.

Steps to Reproduce:
1. Use the call kit sample app, Speakerbox https://developer.apple.com/library/content/samplecode/Speakerbox/Introduction/Intro.html

2. Set the phone's do not disturb mode to "manual" (ON) and silence mode to "Only while iPhone is locked"

3. run the speakerbox app and simulate a delayed incoming call. lock the phone.

Expected Results:
Expected no call kit incoming call screen while the phone is locked. Expected CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb to be reported by the CXProvider

Observed Results:
Observed the call kit incoming call screen and no error object reported by the CXProvider

Version:
10.x

Notes:


Configuration:
enable do not disturb as described above.

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!