Remix.run Logo
echoangle 8 hours ago

But for completeness, iOS apps can detect screenshots. That’s what allows them to show annoying popups with a share option when you take a screenshot.

edoceo 8 hours ago | parent [-]

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.

echoangle 8 hours ago | parent | next [-]

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

Isn’t that what everyone is talking about?

albedoa 7 hours ago | parent [-]

Yes, that commenter is lost.

efskap 8 hours ago | parent | prev | next [-]

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

KennyBlanken 6 hours ago | parent | prev [-]

Yes, as does android.

https://developer.apple.com/documentation/uikit/uiapplicatio...