简体   繁体   中英

How can I access the number of times other apps installed in my iPhone / iPad have been launched?

Does the iOS' internal system keep track what apps have been launched including the number of times they have been launched since they're installed? I want to make an app that lists apps based on how often they're used.

In iOS you can keep track of how many times app launched with method

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

in AppDelegate.m file.

You can also check how many times application comes into foreground from background via

  • (void)applicationWillEnterForeground:(UIApplication *)application

in same AppDelegate.m file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM