geoPoint iOS -Objective C

Are you looking for help?

Yes

Backendless Version (3.x / 5.x, Online / Managed / Pro )

Backendless Cloud

Client SDK (REST / Android / Objective-C / Swift / JS )

Objective-C

Application ID

ED0A6EF3-C6E3-429A-FF34-4C44BE7C3500

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. @property ( strong , nonatomic ) BLPoint *userLocation;

  2. _userLocation = [[BLPoint alloc] initWithLongitude:_longitudeDo latitude:_latitudeDo];

  3. [Backendless.shared.userService loginWithIdentity:loginData.email password:loginData.password responseHandler:^(BackendlessUser *loggedInUser) {

         [loggedInUser setPropertyWithPropertyName:@"geoPoint" propertyValue:self->_userLocation];
         [Backendless.shared.userService updateWithUser:loggedInUser responseHandler:^(BackendlessUser *updatedUser) {
             NSLog(@"User has been updated: %@", updatedUser);
         } errorHandler:^(Fault *fault) {
             NSLog(@"Error: %@", fault.message);
         }];
     } errorHandler:^(Fault *fault) {
         NSLog(@"Error: %@", fault.message);
     }];
    

Actual Behavior

  1. ’Invalid type in JSON write (Backendless.BLPoint)'

Reproducible Test Case

Hi @Mario_Ghersi,

We are looking at this issue and back to you as soon as possible.

Best regards,
Yevgen.

Hello @Mario_Ghersi,

I can reproduce this issue. The internal ticket BKNDLSS-21286 is created and will be fixed as soon as possible.

Regards,
Olha

Issue is fixed in Swift-SDK v5.7.12.
Please update and verify whether it’s ok now.

Regards,
Olha