I need to have local notification of my app "Open Screenshot with our app" when a screen shot is taken while using other apps in ios like "whatsapp" and when taking screen shot by holding "sleep/wake" & "home" button, there should be a local notification from my app to open the screen shotted image with my app like "Stich&share" in android.. Is it possible in Ios(My app may run in background) ?
Asked
Active
Viewed 149 times
1 Answers
0
Yes you can do with UIApplicationUserDidTakeScreenshot
let mainQueue = NSOperationQueue.mainQueue()
NSNotificationCenter.defaultCenter().addObserverForName(UIApplicationUserDidTakeScreenshot,
object: nil,
queue: mainQueue) { notification in
// executes after screenshot
}

Santosh
- 2,900
- 1
- 16
- 16
-
1@Santhosh This will work when our app is in foreground but when our app is running in background, Does this possible when our app is in background and where to call this method, if it works in background ? – Dinesh Kumar Sep 21 '16 at 04:30