I am unit testing an application on the iPhone, and I'm trying to develop a built-in method to record a specific action that users make to interact with my application. I would like for this data to be transported back to me in some way. Originally, I had a method of collecting this information, but I had to be around. This was with nc.
Now, I am thinking of formatting the data and sending it as an email.
This is purely a design question, but does anyone have another suggestion for collecting large quantities of data? I've toyed with the idea of dumping the data into the iPhone filesystem, and asking my testers to politely retrieve them via SSH, but this requires all test devices to be jailbroken, and is not a viable solution.
The best that I've come up with is to just format this data, shove it into the body of an email, and send it to a hard-coded email (mine).
Is it possible to format this data into a file, and send as an attachment? This would also be a much more convenient solution, as it's confined to what I've thought up.
For clarity sake, the flow of this looks something like this:
- Distribute Beta
- Users interact with Beta
- For every use that results in a bug, dump the data into a format that my industry standard desktop app can read
- Attempt to correct for this behavior on the iPhone by simulating the algorithm with the collected data
So it's not purely for usage analysis, it's purely for debugging.