I am unsure on how to create automatically a time stamp at server side in Firebase.
Here is how I create my record:
NSMutableDictionary * dictionary = [[NSMutableDictionary alloc] init];
NSString * userId = [self determineUserId];
[[[_ref child:@"records"] child:userId] updateChildValues:dictionary];
I found this question that suggests the following, however I am unsure how to translate that into Objective-C:
curl -X PUT -d '{"something":"something", "timestamp":{".sv": "timestamp"}}'
How do I translate this into Objective-C?
"timestamp":{".sv": "timestamp"}
Is this the right approach?
I found also this Q/A in Swift.