id滿足如下條件:
每臺iphone id唯一;
該id不隨APP卸載重裝發(fā)生變化;
恢復(fù)出廠設(shè)置后,app仍能獲取到之前相同的id。
ps:我知道有vendor id和advertising Id,問題是如何滿足條件3
pps:之前把第一次生成的id存儲在keychain中,不過恢復(fù)出廠后會丟失...
歡迎選擇我的課程,讓我們一起見證您的進步~~
There is no solution to this problem now. Apple prohibits identification of devices
UUID is basically enough
i Apple doesn’t want you to get it and prohibits you from labeling your phone. You can only use OpenUDID or UUID+keychain, but neither is a perfect solution and you must make a choice
I studied this problem one day before
The final answer is that there is no solution
My final solution is
I work on smart hardware
I asked the hardware side to tell me the unique ID of the hardware
Someone has already answered it. If there is no solution, you can only use UUID
There is a UDID framework that can generate a unique identifier by yourself, but it is not a real UDID, just a simple unique identifier. Search it yourself.