Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View Selected Apps & Time Spent on Each App #29

Open
bcimbali opened this issue Jan 2, 2025 · 3 comments
Open

View Selected Apps & Time Spent on Each App #29

bcimbali opened this issue Jan 2, 2025 · 3 comments

Comments

@bcimbali
Copy link

bcimbali commented Jan 2, 2025

Thanks for all the work on this package - requesting screen time permissions, selecting apps to track, and view the events works great.

One question -> is it possible to view all the selected apps and the amount of time spent on each app? I think the only way to do this is through the iOS DeviceActivityReport but I am wondering if there's an implementation of it in this package that I'm overlooking.

@robertherber
Copy link
Member

@bcimbali This is an early draft at it, using DeviceActivityReport as you mention: #20

Since it's not currently part of the use case I'm working on it's not high priority on my side. But feel free to iterate on it! I think the key here is to make the DeviceActivityReport wrap as simple as possible UI component to make it easy to style and build a UI around on the React Native side (Text will go a long way I think).

@bcimbali
Copy link
Author

bcimbali commented Jan 3, 2025

Thanks! This will help a lot. I was planning to try to add the DeviceActivityReport as an ios target/extension via that expo-apple-targets experimental npm package, but this gives another alternative.

@robertherber
Copy link
Member

It will still need the DeviceActivityReport as a target (it would need to be added like in this open PR: EvanBacon/expo-apple-targets#59)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants