SBRXCallbackURLKit icon indicating copy to clipboard operation
SBRXCallbackURLKit copied to clipboard

-(void)callSourceCallbackURLString:parameters: is not complete

Open akhilstanis opened this issue 10 years ago • 1 comments

- (void)callSourceCallbackURLString:(NSString *)URLString parameters:(NSDictionary *)parameters defined in SBRCallbackParser.m doesn't really the call the URL given. It had to be refactored like below for me to work.

- (void)callSourceCallbackURLString:(NSString *)URLString parameters:(NSDictionary *)parameters {
  NSURL *url = [self callbackURLFromOriginalURLString:URLString parameters:parameters];

  if ([self.delegate respondsToSelector:@selector(xCallbackURLParser:shouldOpenSourceCallbackURL:)]) {
    [self.delegate xCallbackURLParser:self shouldOpenSourceCallbackURL:url];
  }

  [[SBRCallbackAction actionWithURL:url parameters:parameters] trigger];
}

akhilstanis avatar Sep 16 '14 06:09 akhilstanis

Thanks for logging this. I ran into the same issue and I wasn't sure if I was doing something wrong.

sbaker25 avatar Dec 18 '14 20:12 sbaker25