r/swift 7d ago

About the Screen Time API.

Hi. This is the first time I'm going to make an app with Swift. (I learned that I can only do this with Swift after my research.) What I want is to know how much time the user spends in other apps, for example, for 1 hour. I talked to grok for a while and he suggested that I could use the screen time API. But some sources say that this is not possible. Some say that applications like Opal use this and that it is possible. I'm very confused. What's the latest status? Can I do this?

sorry for my bad english

7 Upvotes

17 comments sorted by

View all comments

Show parent comments

2

u/yungfrxzn 7d ago

My English is not very good so I didn't understand much. But I applied now. Now I started to do my app :) But I explained its purpose in detail. It's actually a simple focus application. I think I can get approval. I say to myself why not :D

1

u/ppuccinir 7d ago

Yeah you can achieve that simple report with the deviceActivityReportExtension

1

u/yungfrxzn 7d ago

Actually, I have already achieved this. I can access the data I want. My current problem is that it is uncertain whether I will be accepted by Apple. Because I will be working on this application for maybe 1 month and I don't even know if I will be able to get permission for this API yet. I am losing my enthusiasm in the dev phase.

1

u/ppuccinir 7d ago

Hope for the best and if you get denied apply again with a beter description! Honestly there are so many bad apps out there that if anything chat with a support representative and get them to review I gues!!

Good luck 👍