[英]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?使用什么包?
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.对于仍在寻找答案的人,对于作为@Sahandevs 的 ios,您需要做一些可能被苹果拒绝的技巧,但对于 android,有可用的包来实现此功能。
Like:喜欢:
1- device_apps 1- device_apps
Hope, this will help someone :)希望,这会帮助某人:)
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.在android中创建一个服务来跟踪已安装的应用程序并使用flutter方法通道从java(或kotlin)检索数据到你的flutter应用程序。 Learn More 了解更多
in iOS though, i think you need to do some tricks that maybe will be rejected by apple.不过在iOS中,我认为你需要做一些可能会被苹果拒绝的技巧。 see this links for more info:查看此链接了解更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.