Page 1 of 1

Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 7:18 am
by Xaos
Does anyone know how, on a mobile app (Android and iOS), you can detect if the user took a screenshot like in Snapchat?

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 5:43 pm
by Jackolantern
On most mobile platforms, it is extremely hard to impossible to get the unshared state of another app because of how it is setup. Each app runs in isolation for security, so unless the other app specifically shares that a screenshot was taken with other apps, I'm afraid you are likely out of luck.

About the only thing I could think of would be to continuously monitor the pictures folder, but that could cause false positives if they simply switch apps to the camera and take a regular picture.

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 5:48 pm
by Xaos
Well I wasn't really thinking of another app taking the screenshot, I was more focused on taking a stock screnshot (IE holding the power button and the home button on some phones, for example). Similiar to how Snapchat does.

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 6:49 pm
by Jackolantern
Oh, you want your app to take a screenshot?

EDIT: And sorry, I am not familiar with Snapchat.

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 6:55 pm
by Xaos
I want an event to happen when the user takes a screenshot. Basically whenever the user uses the stock way to take screenshots, it triggers an event. With Snapchat, you send your pictures to someone else, and if they take a screenshot, you are notified.

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 7:00 pm
by Jackolantern
You would have to check to see if there is a public event in the SDK for when this occurs. If there isn't, I am not sure how you could proceed.

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 10:08 pm
by KyleMassacre
Found this for iOS but not too sure on android

Doh, forgot the link
http://ios-blog.co.uk/tutorials/how-to- ... -snapchat/

Re: Mobile - Screenshot Detection

Posted: Fri Jan 02, 2015 10:33 pm
by Xaos
Hey, thanks!