logoalt Hacker News

nine_ktoday at 2:22 AM4 repliesview on HN

The app doesn't know. It just produces a widget tree, and the OS-provided renderer renders it this way or that way. In particular, it chooses not to render controls marked as "security-sensitive" when the rendering is intended for a screenshot; it could instead put empty boxes in their place, etc. The app has no idea and no control, AFAIK.


Replies

saghmtoday at 3:31 AM

Even having never developed on iOS before, I was able to find this in the first google search result for "ios api to detect screenshot": https://developer.apple.com/documentation/uikit/uiapplicatio...

monegatortoday at 7:15 AM

Open the amazon app. Take a screenshot. See a toast message informing you that the amazon app has detected you've taken a screenshot. Fucking used for fucking profiling.

kashnotetoday at 2:24 AM

Don't apps like Snapchat notify the other person if you take a screenshot of your messages?

show 2 replies
nemosaltattoday at 2:42 AM

The apps definitely know. Horsemen example: If you screenshot on Amazon (and Business version) iOS apps, it “helpfully” pops its own share sheet.