IOS will detect the capture of photos from the default camera application in your application from the background

I want it to be able to detect a camera capture event that comes from the default iOS camera app when my app is running in the background to do some processing.

I saw Facebook Moments doing this. It issues capture notifications after it has been idle for several hours, after 180 seconds when Apple allows any application to remain active at max. After it is placed in the background. In addition, they do not accept accommodation permits. They do not do this on the basis of silent APNS, because it works without the Internet.

I already studied PhotoLibraryChangeObserver in Photos.framework, but it only works when the application is brought to the fore.

+4
source share

Source: https://habr.com/ru/post/1620047/


All Articles