Is there any private api to detect camera access by different apps on iphone? - iphone

I need to implement an app that monitors camera use i.e. which app used camera (started/stopped) on iPhone.
my app is going to run in background using apple's background multitasking feature for voip and navigators.
I can use private api as my client doesn't need this app on appstore.
Thanks.

Take a look at this private framework:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-/tree/master/ImageCapture.framework
It has some interesting classes (including ICCameraProperties with property locked)

Related

Apple Watch and iphone communication

I am implementing apple watch app with in my existing app.I need to full fill these task between both iphone and watch
1) sending data from watch to iphone Done (by using openParentApplication).
2) getting call back also done (using openParentApplication call back method)
3) I need to get apple watch notify when user click on a button on iphone app .I have implemented reverse functionality using openParentApplication.
I stuck how to update apple watch UI after user click on any button or any particular task happen on iphone app.
Please let me know is there any way to perform passing event and data from iphone to apple watch
Please use this link https://github.com/mutualmobile/MMWormhole for communication between iphone and watchKit.
You should checkout the new WCSessionDelegate is watchOS 2.0. It can be implemented on both the Apple Watch and contains multiple methods for sending data back and forth between the two devices. Detailed information can be found in the WWDC video Introducing Watch Connectivity

Getting notification of iOS device usage in background

Might be i am using a wrong title but i will try to explain here what i want.
In iOS i need to implement a functionality to get notify if the user is using their iOS device.
My app will be running in background using location services and i need to find out if the the user is using their device. It is doable as i have looked into this application which is sending notifications in background to the drivers who is suing their devices while driving.
https://itunes.apple.com/fr/app/cellcontrol/id661169580?l=en&mt=8&ign-mpt=uo=2
So i need similar kind of functionality to find out if a user is using iOS device or not. If anyone of you can suggest me any approach then it would be great for me to start.
Thank you!
Note: I have tried to find out touch events in background but that is not possible as i have done some research on this.
You won't be able to receive touch events when the app is in background using public API's. However, you can do that with the help of mobileSubstrate library ( http://iphonedevwiki.net/index.php/MobileSubstrate - The MobileHooker component is the one that would be used). by hooking your process to the OS. As an example, the display recorder app in Cydia tracks global gestures while recording the screen. This will be a cydia tweak and you will need to jailbreak your device to do all that.
Coming to your specific use-case, the example app you cited should be using one of the exceptions for background applications mentioned in https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html (see the section - "Implementing Long-Running Background Tasks"), probably the one to receive updates from external accessories.

Can we play prerecorded message in a call through iPhone app?

I want to create an iPhone app with following features:
User should be able to make a call to number.
App will play the prerecorded message when call get connected.
After playing the message, line will be connected and user will be able to communicate with the person to whom he made the call.
I heard that Apple doesn't allow the developers to interact with the calling functionality of iPhone but is there any way to achieve this. Please suggest!
Thanks-
You have heard correctly, According to Apple Developer Library, it is not possible to intercept the calling functionality.
Simple Apple does not allow such stuff with current sdk.
Not so sure but, May be possible for jailbroken iPhone app.

Is it possible to run Safari in the background on the iPhone and monitor a user's location?

Is it possible to run Safari in the background on the iPhone?
Specifically, our client would like to monitor a user's location via HTML5 GPS capabilities and measure the speed of movement.
The reason for avoiding native implementation in iOS is because the client wishes to create a cross-platform service using HTML5.
Is this possible?
I don't believe Safari continues to execute when it's backgrounded. (This is supported by a recent thread on the Apple discussion board.)
That said, it would be fairly trivial to do this in a proper iOS application, although you'd obviously need existing knowledge of Objective-C, some of the main Cocoa/UIKit classes, the Xcode environment, etc.)

How to render the iphone device screens on mac OS or in windows

We have an iphone device in our company and for the remote demo purpose I have to show some of the device specific features like voice call, accelerometer etc. (which is not possible on a iphone simulator), from a mac / windows system. Is there any way to render the device screens on mac /windows machine?
Advance Thanks,
Sathish
I have not tried this but there is a private API MPTVOutWindow which can be used. For details on how look at this blog post http://www.touchcentric.com/blog/archives/3
As this is a private API, it needs to be built into your app and it will never pass the app store submission process whilst it is in the app.
An easier way would be to set up a web cam overhead above the phone.
You can take a screenshot by pressing both hardware buttons simultaneously (power at the top and home at the bottom). You can then mail the images or sync to get them onto the computer. If you need to show the application in action, not just static screens, you could separate the assets and animate in Flash.
Apple does this with iPhones at their keynote speeches and at WWDC all the time. However, it seems that they have "special" iPhones; some presenters use the camera-over-the-iPhone approach and some have direct iPhone-to-video connections. Regardless, this is not currently possible on an iPhone that you haven't jailbroken. Your best bet is to simulate it.