How to track how much time other app is used? - ios

i want to track how much time other apps in device are used by the user, i want track that time inside my app.for ex. i want track how much time user used the Facebook app, or WhatsApp or any other app.
is there any way to do this...please give any suggestions or example code or any other tutorials..
Thanks,
raki.

I think Apple don't allow tracking when you are out of your app, for tracking time and user activity in my apps, I use flurry.

You can track how long people use your app, sure. One popular way is via Google Analytics iOS SDK
For tracking other apps on the users device, that is simply not possible. You do not have access to other apps you have not developed yourself.

It cannot be done. Apple forbid apps trying to access things outside of their sandbox.

Related

Xcode - Tracking User Usage

Is there a way to track when, and for how long, users spend on different screens of an app?
I have developed an app as part of my PhD research but need to record app usage when participants have access to the app - is there a way to do this?
In Firebase Console you can check your app Analytics and you can see a lot of analytics on there such as this below pic:

Is it Possible to get last known location of device from other apps in iOS

Im building a location based application, where in i use CLLocation to get users device location.
But my question, Is it possible to get users current/last know location from other apps in device which are already using Location services. So i can save the battery of iPhone?
Just a thought.
Not sure security issue?
Or is it possible?
Thanks in advance
No. Apps are sandboxed. You can not access info from any other app.
One word
NO
You can't access any info of other apps.
If you want to access any info, you have to jailbreak your iPhone, which Apple never allow.
From Apple,
Communication Between Apps Follows Specific Pathways
For security, iOS apps run in a sandbox and have limited interactions with other apps. When you want to communicate with other apps on the system, there are specific ways to do so.
For more details, take a look at this link

Campaign Measurement - Google Analytics iOS SDK

I want to track my app may be launched by referrals from ad campaigns, websites, or other apps. Therefore, I'm using Google Analytics iOS SDK. Here's guiding document https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns. According to this document, I'll write my own implementation code in application:handleOpenURL: method.
With Android SDK, Google Play app broadcasts an INTENT_REFERRER to our app during installation. This intent contains the value of the referrer parameter of the link used to reach your app's Google Play Store page, if one was present. So, my question is that "Are there any similar things in iOS? How to test it?".
Thanks and best regard,
iTunes doesn't broadcast anything similar to intent_referrer at present. If you use Google Analytics for iOS installs, GA uses Identifier for Advertiser (IDFA) for tracking. When a user taps on an advertisement from a supported network on an app, the IDFA is sent to Google. Then, when your app launches, the IDFA is sent again and compared to list of IDFAs that Google stored from previous taps. That way they can give attribution.
It's obviously not as clean as intent_referrer, but it's the best one can do at present. You can also try fingerprinting etc with Appsflyer, MobileAppTracking etc, but I don't know how accurate those are. I've heard they're not very accurate, but they're better than nothing.
Apple announced adding support for campaign tracking in iTunes Connect. But, we haven't heard about it for a very long time now. So, I won't hold my breath. Hope this helps!

How did Google Music for iOS access data from another iOS App?

Today I downloaded the new Google Music app for iOS and it immediately had me signed in already. I assume they accomplished this using one of the other Google Apps on my phone. To keep this appropriate for StackOverflow, here's the question, specific and objective:
How (technically) can an app (like Google Music) authenticate a user using data from another app (like Google Search or Google Chrome)? I was under the impression that apps in iOS were entirely sand boxed.
I'm very curious in finding a technical explanation for this, so if someone could recommend a way to rephrase or retag the question, please feel free to edit or migrate.
iOS Keychain can be shared with your other apps via access groups, see this for example.

Possible to determine usage stats for other iPhone/iPad apps?

I'm an iOS newbie, but was wondering if it's possible to use a built-in API to determine how much time another app was active during some period (say, the last 24 hours). I don't have access to the source code for the other app.
I'm guessing that security precautions in iOS make this impossible, but wanted to see if anyone else had suggestions.
Thanks!
You don't and can't get usage data of other apps on the system, unless you own those apps or have a formal relationship with the developer of said app.
You can try using Google Analytics for iOS
http://code.google.com/mobile/analytics/docs/iphone/
Flurry API allows you to track a number of things and report back. You might start with something like that. There are a number of Analytics solutions.

Resources