How to get Screen Time on iOS devices? - ios

We are currently working on building an iOS app that tracks the screen-time of the user on their iOS device. I understand that apple is very restrictive and the current Screen-Time API is any accessible through Parental Settings. Is there any way we can get basic info on the screen time of the user? Even info like total screen time of the day will do.

I believe that Screen Time API from Apple does not offer a report as one of their capabilities.
Answer in other question: Link.
Also see WWDC video about this: Link

Related

Extracting screen time usage of the user in an Ios app (maybe with the Screen Time API)

Dear StackOverFlow Friends,
We are having a hard time understanding a concept that relates to the app idea that we are planning to develop. Imagine that we have an app called A. that requires the user's screen time usage information for selected apps like Udemy, Duolingo, and such. Our concept does not require any kind of app tracking or anything else, the only information that we need to acquire is the screen time information of the user. Accordingly, we have found an API namely Screen Time API, however, within the documentations and open topics, we couldn’t exactly be sure that we would be allowed to have such information. In this sense, we will need your kind support directing us around the idea and API.
The app will provide a futuristic, ToDo, and agile-oriented device usage environment for users to track their daily objectives by directly using the screen time information (of the apps, not just the overall phone usage).
Are we able to extract Screen Time information of the user's various apps?
Are we able to use the Screen Time API, no questions asked?
Do we need to create a proposal for the AppStore team that elaborates our idea for the App publishment?
Regards.

How to track how much time other app is used?

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.

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!

iOS: read sms while app is active, like Drivesafe.ly does

Can you point me to a method which allow an app read sms messages while the app is active.
I know many people say it's not possible, but Drivesafe.ly does it and I know some bank apps do that. The only condition for that to work is that the app is currently active (shown on the screen).
Many thanks!
Iam afraid its still not possible on iPhone. If you check the iTunes page for Drivesafe.ly app, there is a notice about that.
It says:
...the application does not read native text messages out loud that come directly from your wireless carrier. Unfortunately, this is not technically possible on iOS devices today...

How to receive advertisement like Axe iAd

See the following link
http://www.youtube.com/watch?v=uc5yTo4viwQ. A beautiful video of advertisement using iAd. I am working on a PDF reader application and we are showing some advertisement using google Mediation SDK. My doubt is what should I do to show Add like 'Axe iAdd' where they detect shake, can rotate the angel etc; What should I do to receive that specific Add in my application? Currently I am getting normal advertisement from inMoby. Thanks in advance.
I'm not 100% about this with Google Mediation, but in iAD there is no way to pick which ads you receive. The best you can do is give iAd keywords for ads you DONT want. Additionally, you don't have to do anything in your app (shake etc) for features within the iAd. These are the responsibilities of the ad's developer and are not dependent on features in your app.
Here is the documentation on using Apple's iAd advertisements in your app. There is a lot of information there, more than can be addressed in a single answer. You may need to have a developer account to access this documentation.
Using iAd in Your iOS Apps

Resources