Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testers all show up as anonymous user

Tags:

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 
like image 868
Chris McKnight Avatar asked Jun 07 '12 20:06

Chris McKnight


1 Answers

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".

like image 70
Baza207 Avatar answered Sep 24 '22 15:09

Baza207