Currently, I am trying to retrieve "ServerDate" from back4app.com using PFCloud. Unfortunately, I have encountered the following issue:
Invalid function: "getServerDate" (Code: 141, Version: 1.13.0) When I attempted to use the code below:
[PFCloud callFunctionInBackground:@"getServerDate"
withParameters:nil block:^(id object, NSError *error)
{
if (!error)
{
NSLog(@"%@",serverDate);
}
else
{
[self getServerCurrentDate];
}
}];
As a beginner, I would appreciate an explanation on how to implement and execute JavaScript code in Objective-C.