復(fù)盤之前版本處理功能的時(shí)候实蔽,發(fā)現(xiàn)了一個(gè)有意思的東西。iOS11+SDK支持的DeviceCheck谨读,看蘋果官方文檔中有如下介紹:
Access per-device, per-developer data that your associated server can use in its business logic.
Using the DeviceCheck APIs, in combination with server-to-server APIs, you can set and query two bits of data per device, while maintaining user privacy.
Before you can use the DeviceCheck service in your app, you must register an explicit App ID with your team in the Apple Developer Portal.
The app you use to generate the token must be associated with your developer account; otherwise, the generation request fails.
簡(jiǎn)單來(lái)說(shuō)局装,你必須先在開發(fā)者賬號(hào)里面注冊(cè)AppID,形成開發(fā)賬號(hào)與應(yīng)用的綁定,然后使用蘋果提供的API劳殖,通過(guò)ES256加密铐尚、base64編碼的令牌,你可以存取2bit的信息哆姻,當(dāng)用戶刪除應(yīng)用后重新下載宣增,這個(gè)值不變。
綜上填具,這個(gè)是蘋果新給出的能永久標(biāo)識(shí)信息的方式统舀。但是存儲(chǔ)信息實(shí)在可憐±途埃可以用作標(biāo)識(shí)誉简。