ios7 - iOS 7 showing different UDIDs in different applications -


i using code udid of ios 7 device in app

+(nsstring*)uniqueidfordevice {     nsstring* uniqueidentifier = nil;     if( [uidevice instancesrespondtoselector:@selector(identifierforvendor)] )     { // >=ios 7         uniqueidentifier = [[[uidevice currentdevice] identifierforvendor] uuidstring];     } else     { //<=ios6, use udid of device         cfuuidref uuid = cfuuidcreate(null);         //uniqueidentifier = ( nsstring*)cfuuidcreatestring(null, uuid);- non- arc         uniqueidentifier = ( nsstring*)cfbridgingrelease(cfuuidcreatestring(null, uuid));// arc         cfrelease(uuid);     }      return uniqueidentifier; } 

but same code in other applications shows udid. how can unique identifier same throughout ipad irrespective of application?

you can't.

identifierforvendor give same identifier apps same developer on device. , it's not guaranteed permanent; if delete apps vendor, , reinstall them, it's you'll different identifier.

as ios6 implementation, that's not going give permanent, point of uuid give unique string every time.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -