Sarthak Gaikwad
Sarthak Gaikwad

Reputation: 41

I want to access the usage time of all applications. How do i program this in flutter?

I want an application that can track the usage time of all my application. How can i implement this in flutter? What packages to use?

Upvotes: 3

Views: 4597

Answers (2)

iamnabink
iamnabink

Reputation: 520

For someone who is still looking for answer, For ios as @Sahandevs, you need to do some tricks which could be rejected by apple, but for android there are package available to achieve this feature.

Like:

1- device_apps

2 - app_usage

Hope, this will help someone :)

Upvotes: 3

Sahandevs
Sahandevs

Reputation: 1160

you can use this How to create a Service which continuously monitors app usage information? to create a service in android to track installed apps and use flutter method channel to retrieve data from java (or kotlin) to your flutter app. Learn More

in iOS though, i think you need to do some tricks that maybe will be rejected by apple. see this links for more info:

Upvotes: 0

Related Questions