sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Handle UUID changes in device for false positive OOM

Open aguilarpgc opened this issue 5 years ago • 3 comments

As Apple mention (https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor) for UUID:

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

That would mean adding this scenario in SentryOutOfMemoryLogic: If the UUID changed then return NO, if it hasn't changed then continues with the next validations. 
 My question is if you plan to add this scenario in SentryOutOfMemoryLogic.m?

aguilarpgc avatar Sep 17 '21 02:09 aguilarpgc

looks like a fair thing to check as well

marandaneto avatar Sep 17 '21 06:09 marandaneto

Hi, thanks for the response. Do you agree If I make the implementation? or you guys will be considering doing yourselves?

aguilarpgc avatar Sep 17 '21 14:09 aguilarpgc

@aguilarpgc a PR would be awesome

marandaneto avatar Sep 20 '21 06:09 marandaneto