UIApplicationUserDidTakeScreenshotNotification not posted in Messages extension

Originator:jeff
Number:rdar://27221614 Date Originated:07-Jul-2016 11:03 AM
Status: Resolved:
Product:iOS SDK Product Version:iOS 10.0 (14A5297c)
Classification: Reproducible:
 
Summary:
The UIApplicationUserDidTakeScreenshotNotification notification is not posted in a Messages extension.

Our app (Confide) is a secure, confidential, ephemeral, screenshot-protected messaging app. We are planning on building a Messages extension to allow users to send ephemeral and screenshot-protected messages from within the Messages app. However, a very important part of our app is being able to detect screenshots when they occur so we can close the message and prevent the user from taking further screenshots.

Steps to Reproduce:
1. Create a Messages extension
2. In the MSMessagesAppViewController subclass, register to observe the UIApplicationUserDidTakeScreenshotNotification notification
3. Run the messages extension
4. Take a screenshot

Expected Results:
The target/selector for the notification IS called

Actual Results:
The target/selector for the notification is NOT called

Version:
iOS 10.0 (14A5297c)

Notes:
At a minimum, this notification should be called when the Messages app is in the Expanded MSMessagesAppPresentationStyle, as it takes over the entire screen. But it would also be nice to have for Compact as well.

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!