我们如何知道我们的应用程序是否从iphone上卸载?

我想知道我们的应用程序从iphone上卸载的日期?

正如其他人已经回答的那样 – 你做不到。

但是,如果您在应用中启用了推送通知,则可以通过使用APN反馈服务查看哪些apn令牌已被删除(假设卸载),从而获得一个非常粗略的想法。 此SOpost中有更多信息: “推送通知” – 反馈,卸载应用程序

同样,这应仅用于对卸载提供非常粗略的想法,因为用户可以出于任何原因选择退出推送通知或用户令牌更改。

有一些工具可以为您跟踪应用卸载。 我认为有用的是卸载跟踪 – MoEngage 。 它们为您提供了卸载应用程序的完整用户列表。 您还可以推断出用户卸载您应用的原因。 最好的部分是你可以通过MoEngage仪表板向那些用户发送电子邮件,以便获得反馈或让这些用户登机 。

你不能,没有办法判断该应用程序是否被删除,也没有Apple跟踪您和开发人员可以访问的已卸载的应用程序。

没有直接的方法来获取此信息。

但是,您可以将第一个下载日期保存在钥匙串或其他文件中,并且只要您想知道将其检索回来。

即使在删除应用程序后,所有钥匙串也会存储在您的设备中。 考虑您删除了应用程序并再次下载它,您的钥匙串将在最初的日期和时间完好无损。

使用此钥匙串或具有应用程序列表的文件进行比较以查找缺少的应用程序。

你可以使用一些调整来做到这一点。

阅读本文: http : //iphonedevsdk.com/forum/iphone-sdk-development/37103-finding-out-what-apps-installed.html

如果你正在越狱,你可以这样做:

-(NSMutableArray *)desktopAppsFromDictionary:(NSDictionary *)dictionary{ NSMutableArray *desktopApps = [NSMutableArray array]; for (NSString *appKey in dictionary){ [desktopApps addObject:appKey]; } return desktopApps; } -(NSArray *)installedApp{ BOOL isDir = NO; if([[NSFileManager defaultManager] fileExistsAtPath: installedAppListPath isDirectory: &isDir] && !isDir) { NSMutableDictionary *cacheDict = [NSDictionary dictionaryWithContentsOfFile: installedAppListPath]; NSDictionary *system = [cacheDict objectForKey: @"System"]; NSMutableArray *installedApp = [NSMutableArray arrayWithArray:[self desktopAppsFromDictionary:system]]; NSDictionary *user = [cacheDict objectForKey: @"User"]; [installedApp addObjectsFromArray:[self desktopAppsFromDictionary:user]]; return installedApp; } return nil; } 
Interesting Posts