At the moment I used the replay template that was on here (it's very old).It is putting all the data into an array already.
Each physics item has its own array. Then at a set internal (I have a variable to change / experiment, currently set at 0.1s) - it will push the X, Y position, rotation and animation frame to an array. As it does this is add's one to a variable so that you can loop from 0 to this variable to replay the match.
It works well and was very easy to setup - trouble is it also records the position when statioary and as you can image when you combine all 10 arrays into one its alot of text. (Each player has 4 bowls, there is the jack and wood on the mat that also need recording)
On the PC because I can use invoke download, I've made it so I can download asJSON all arrays compiled together. I can also load in one of these files and load up a replay fine. Trouble is this is blocked on android. The shortest match posible is around 800kb JSON file with around 600,000 characters.
I might try and modify the code so that it only pushes to the array when the object moves - storing a value to represent what 'frame' this occurs at. Then if the frame number matches the loopindex it will set the position - otherwise leave where it was. This would cut out alot of the text as most of the time the objects are stationary except for one object on the mat (or a couple if there is a collision). I am guessing this would be better leaving as an array for each object as if I tried to create on big 3D array, I am guessing it would store alot of "0" when most objects are still.
I did manage to get it posting the array data to a google sheets - Without an optimization though I am hitting the fact that google has a 50,000 character limit per cell. (I have tested splitting the POST request into 50,000 at a time but this is just bound to give me problems if I don't make efficient.
I started splitting out a way of storing just the last shot yersterday so a happy meduim might be to allow users to save / submit just one shot. (I'd like to allow submitting your best shots / any bugs encountered)