简体   繁体   English

iOS:有没有办法知道当前的iOS用户是否曾经使用过我的应用

[英]iOS: Is there a way to know if the current user of iOS ever used my app

I'm developing an iOS application and I'm searching for ways to find out if the current user of the iOS device ever in the past used my application. 我正在开发iOS应用程序,并且正在寻找方法来确定iOS设备的当前用户过去是否使用过我的应用程序。 Idea here is to disable intro section of the app if the user has had the experience earlier. 这里的想法是,如果用户有较早的经验,则禁用应用程序的介绍部分。

I'm aware of the solution that stores UUID in the KeyChain of iOS device. 我知道将UUID存储在iOS设备的KeyChain中的解决方案。 But I'm not sure if UUID stored could persist across device factory reset and other devices owned by the user. 但是我不确定存储的UUID是否可以在设备出厂重置和用户拥有的其他设备之间保留。

No. 没有。

You can get the UUID using [[UIDevice currentDevice] identifierForVendor] to track devices that have used your app (you would have to store these on an external database somewhere), but that would not help you for people that are doing a fresh install of the app on a new device. 您可以使用[[UIDevice currentDevice] identifierForVendor]来跟踪已使用应用程序的设备(您必须将它们存储在某个地方的外部数据库中),以获取UUID,但这对于正在重新安装该应用程序的人没有帮助。新设备上的应用。

Using the UUID would not help you with a new user installing the app on a second hand device where the app was used previously. 使用UUID不会帮助新用户在以前使用过该应用程序的二手设备上安装该应用程序。

Users transferring their data from an old device to a new device would take all the settings with it (backup/restore), so it's not a problem in that situation. 用户将数据从旧设备传输到新设备时,将进行所有设置(备份/还原),因此在这种情况下这不是问题。

The only way to do it reliably would be to use the Apple ID, but of course Apple don't make that available for privacy reasons. 可靠地做到这一点的唯一方法是使用Apple ID,但是出于隐私原因,Apple当然不提供该ID。

You can use this third party library GBVersionTracking . 您可以使用此第三方库GBVersionTracking

It gives you some interesting features about versions, launches, build etc... 它为您提供了一些有关版本,启动,构建等的有趣功能。

You can play around with those information to create a logic in order to skip or not your intro. 您可以使用这些信息来创建逻辑,以跳过或不跳过简介。

Hope it will help. 希望它会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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