Why do all of my crash logs show anonymous user when all of them have a testflight account and I'm setting the uuid in the test flight initialization?
in my singleton:
#define kTestFlightTest 1
in application initialization:
[TestFlight takeOff:kTestFlightToken]; #ifdef kTestFlightTest [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]]; #endif
Just emailed TestFlight about it and got a response with a solution that works a charm. The UDID code:
[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
needs to go before:
[TestFlight takeOff:kTestFlightToken];
Swap those around and it all works fine. :-D
I've emailed back saying thanks but that it should be something they really mention in the docs (being so simple, yet not that obvious).
Edit: This answer only appliers to iOS versions BEFORE iOS 7. As it's been noted in the comments, iOS 7 removes [[UIDevice currentDevice] uniqueIdentifier]
completely. There are ways of making a UUID with NSUUID
from iOS 6, though I don't believe these work with TestFlight yet as they are created by the users device per app and there is no way of knowing what it'd be externally. I'm sure they guys and gals over at TestFlight are looking into a way to track who the user is, but until then, get used to seeing "Anonymous User".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With