Is it possible for an app to obtain the information about how long the user uses another app? - ios

In iOS, is it possible for an app to get the information about how long the user uses another app?

In iOS each app runs in its own sandbox and cannot see data from other apps, even apps from the same publisher. An app can access special shared data, like photos from the album or contact data, but it is not possible for an app to directly access information like you have mentioned.

No, there isn't. There is no way to fetch data from another app, this is part of the App Sandboxing principle.

Related

I need to check if user open a facebook or whats app during driving

I need to crate app, one of it is features to check if user is using Facebook or whats App during driving is it doable.
For privacy matters, Apple does not allow iOS apps to access other application's data, such as when the user enters them and other "sensitive" data of that sort. So, the simple answer is that you cannot do that. Another App's usage is undeterminable as of now on iOS.
Either way. Even if iOS apps are allowed to fetch data from other apps, you have to make sure your app is running on background and checking. iOS manage memory itself and kills app in background automatically. So the app is not practical. Plus if you constantly check the speed in background, the battery life will decrease.
But again on the first hand as other answers, your app does not allowed to access data. So this is not doable.
It is not possible , as apple does not allow iOS Apps fetching or accessing other apps data. Thanks

Programmatically How to wipe out iPhone or iPad data in i phone apps

I am developing an application for security purpose which has 1 requirement as "Wipe out iPhone or i pad data completely if device is stolen".
While doing search for this functionality, I came across one application "Find My iPhone" here which supports this feature of "remotely wipe out all data".
(http://www.howtogeek.com/77158/how-to-remotely-lock-or-wipe-your-ios-5-device/)
But i want to this functionality through programmatically in my app.Can someone give me a solution for this problem?
And is it possible to do this functionality through programmatically?
You cannot completely wipe a standard iPhone's data from an app. The app runs in a sandbox environment so you cannot access data from other apps or iOS itself meaning that you cannot wipe it. That being said, you could wipe photos and contacts programmatically as long as the user grants you access to contacts and photos.
There is NO WAY that Apple would let programmers wipe data remotely for the entire device.
Instead of doing that, maybe you should have functionality in your app where if server returns a particular flag, you would delete all the data stored locally on your app, by you (like login details for your app, personal data stored in Documents). I suggest that, because I've done it before.

Can we take over the air backup of Applications, Call Log, SMS, MMS, Bookmarks, Alarms, Dictionary on an iPhone?

My app need to take backup of user's iPhone's almost entire data to iCloud.
Can we access the call log, SMS, MMS etc. databases of iPhone just as iCloud does internally while backing up programmatically?
Is there some means to give user option list for data he wants to backup to iCloud in our app and backup only that data instead of all data programmatically?
Thanks
Assuming that you are referring to a non-jail broken device then in a word, no. An app cannot access data outside of its own sandbox
Apple can't allow to access and change SMS and log associated database. If you have jailbreak iPhone then you can access database using following path.
/var/mobile/Library/SMS/sms.db
For development level you can access it but your application wan't get approve from iTune store.
It is not possible to get SMS/Call Log/MMS detail.
Your application only access those data which can be supplies by Apple's public API.
Your application can not access data outside of Sandbox other than public API.
Yes, if your device is jail-broken and you can use hack like direct url to database.
But if you do so your application will never approve by App Store.
Please read App Review Guidelines

Is it possible to access scores of an iOS game application within other iOS application?

I want to access score of user 'A' that he/she secure in Game_Application_1 within Game_Application_2 when user 'B' playing Game_Application_2.
Assuming user A given permission to access thier score.
Both Application developed by different developer.
Please let me know it is possible or not and if possible then how?
Thank you.
This totally depends, if you developing both app then yes. Storing the scores in the keychain can make it accessible to both app.
If you are you are not the developer of both apps then probably no, unless you have access to some kind of API that could tell you the score. Since you can not access data from other app the developers of the other should provide an API to allow you access the score. This can be web based of even using an App URL Scheme.
If both apps are yours you can easily use iCloud's key-value Store to share information.
See Apple's Key-Value Data in iCloud.
See NSHipster's iCloud article.
In ios application you can't access data from out side the application bundle. If you want any information or data from out side the application bundle then you should use API (web services) which contain those information.

Track other app from my app - iOS

Is there any provision to track(usage time) of any app from another app in iOS?For example:- I have developed an app named "A" and I want to track usage time of another app installed in my device(iPhone or Android) named "B". By usage time, I mean how much time a user had used the app. Would it be possible?
Another scenario:- Is it possible to track usage time of native app(like mail, camera, message,etc) from our app?
I think this is not possible in iOS, but not sure about it. Does anyone have any idea of this?Note:- I don't want to track my app usage using Google analytics.
You can't!
All the application in iOS runs in sandbox mode.
If you want to track your application usage you have to connect it to the server with (ex) REST interface.
EDIT:
Just bump on the idea...
If you writing for iOS7 you can use Shared Keychain feature. You can send there all usage statistics and receiving it by other app. Should work!
Check this out: http://shaune.com.au/ios-keychain-sharing-data-between-apps/
If both apps are signed by the same App Store Developer account, then they can both share an iCloud data store. Just store the usage time in iCloud and it'll work perfectly.
You cannot track any app by any other developer, the security model does not allow it.

Resources