logoalt Hacker News

edoceotoday at 12:01 AM3 repliesview on HN

What? App-B on iOS knows when I'm taking a screenshot from App-Y? I don't have iOS to check but that seems crazy.


Replies

echoangletoday at 12:25 AM

No, I was talking about App Y knowing about a screenshot you take of App Y.

Isn’t that what everyone is talking about?

show 1 reply
efskaptoday at 12:16 AM

I guess it would need permissions, but you can monitor the photo library with PHPhotoLibraryChangeObserver and check if a new item's subtype is photoScreenshot.

Otherwise userDidTakeScreenshotNotification only fires for your own app