@@ -86,7 +86,9 @@ static const NSInteger OrderTypeNew = 2;
if (location) {
NSString *latLon = [NSString stringWithFormat:@"%f,%f",location.coordinate.latitude,location.coordinate.longitude];
- [RADataProvider reportCurrentLocation:latLon];
+ dispatch_async(dispatch_get_global_queue(0, 0), ^{
+ [RADataProvider reportCurrentLocation:latLon];
+ });
} else {
}
@@ -95,7 +95,9 @@ static RASingleton *singleton;
- (void)bindUserWithNotificationToken {
if (_user.length && _password.length && _notificationToken.length) {
- [RADataProvider bindNitificationToken:self.notificationToken];
+ [RADataProvider bindNitificationToken:self.notificationToken];