open the camera app while iphone in lock mode programmatically - ios

I'm looking for solution that will enable my app to get an event from the server while the phone is in lock mode, when the event occurs the app will open the camera and take a picture.
while the phone remains locked and send the picture to the server in the back ground.
is it possible?
will apple store allow this kind of application?
Clarification:: the idea is not to take a picture without the user knowledge, the goal is to have him take a quick picture without having to open the phone & the application in order for that picture to be taken. If there is a solution that allows me to add a button like the camera build in next to the lock that's a great solution too.

Short answers
No,
No.
This is a huge violation of privacy, and has a great potential for abuse, therefore, there is no way to sneak pictures away from the user's device on demand.
You could send a push notification and ask a user to take a photo and upload it to your server on the other hand.

Related

How to have my accessibility app overlay other apps on iOS?

I'm working on an accessibility app for a client and he needs it to be able to have it on top of other apps. It takes a small area and can be moved easily.
Is there an app permission or config setting to do this?
UPDATE:
An iPad owner sent me a screenshot showing a chat app floating on top of another app.
No, its is not possible because apple does not even give you permission to show you wallpaper too... if it does have given that feature then any app could have a possible access to some some secure data situationally.
e.g: You are using payment gateway in an app now another app start running as an overlay over the existing app which means having a snap shot of the previous app as a background of your current app. Hence privacy breaching. Hence apple will not approve of something like that, hence no feature like that.
Hope this will help you to understand more clearly.

IOS monitor photo album change when app is in background

I'm building an app that is supposed to monitor picture taking even if the app is in the background.
For example:
A user opens the app, insert some settings and then puts the app in the background (locks the device or something). When the user opens the device again and take a photo with the camera, my app needs to catch that event.
I read some tutorials about the ALAssetsLibraryChangedNotification class and didn't exactly understand if this is what am I looking for because it doesn't say if this runs when app is in background.
I was wondering if someone here has some experience with this kind of thing and can give me some input about this kind of thing maybe an observer? Maybe a service? Any ideas?

Using MultipeerConnectivity.framework to send and receive photos and text files

I want to give to the user of my app the ability to share a photograph without having an internet connection. It is quite hard to explain but I'll do my best. Basically in my app a user can press on a plus button to take a shot using their iPhone. This image is then uploaded on the Internet (Dropbox) in a common folder that can be accessed by all app users. When other users open the app, the image that has been uploaded is downloaded on their device. Since there might be more than one image, the app refreshes itself once in a while, and downloads the new photographs. I want to do the same thing using the bluetooth (or airdrop). When one device takes a picture, this is saved on the device, and sent to all app users nearby. These users can edit it, send it back to the original device where it can be accessed by everyone. basically the original device acts as a server, and all other devices stream the information from that device. The whole purpose of this is to have, say 15 different iOS devices all in the same room in sync which display the same exact thing. When someone edits, all the other people will see it, as if they where in sync with "the cloud" (which now is Dropbox).
I understood that this might be possible with MultipeerConnectivity.framework as it permits more than one device to be connected at the same time. I also found an example app called beam it: http://arctouch.com/beamit/
What I'm asking here is not really for some code, rather some indications on how I could approach the problem.

iOS: Testing device to allow access to photo library...reset setting

I was testing my app, part of which allows the user to take a photo and save it. When the alert appeared on the screen asking me to give my app access to the photo library I accidentally hit "No" (Stupid touch feature : D ). Now each time I run the app I cannot save images. Is there a way to reset that?
Just turn access on in the settings. Settings->Privacy->Photos->Your App.

What is the equivilent to a ContentObserver in iOS?

I use a ContentObserver in my android application to receive a notification whenever a photo is taken. Obviously iOS doesn't use the intent system, so is there an equivalent or alternative way to do this? I would prefer not to write a full camera application if possible.
This is not quite possible. Even the latest Google+ application on iOS, with its Instant Upload feature does not get notified when photos are taken, it simply checks the asset library while the application is running, and then as long as possible while running in the background before getting timed out by the OS.
The following is from the Google+ help on the matter:
Note: Photos and videos will upload while the Google+ application is
open and for a brief period of time afterwards.
HTH
You cannot run in the background and get notified when a picture is taken and saved to the Camera Roll by another app on iOS.
That said, you don't really need to write a whole camera app to be able to let the user take pictures from within your app, or to access Camera Roll from within your running app.
Take a look at UIImagePickerController. It is really easy to let the user select or take a photo on iOS.
There is no equivalent to ContentObserver in iOS.

Resources