objective c - Venmo iOS sdk crashing application, when Venmo returning back to app after login to Venmo from safari -
i using venmo ios sdk in application, have done pod file installation , all. have venmo app id , secret key, using same able login venmo sample app provided venmo, if use same app id , secret key in application getting crashed in "startloading" method in "venurlprotocol.m" class. getting '[nsurl querydictionary]: unrecognized selector sent instance' error.
below method in app crashing.this method gets executed after clicking on allow button on venmo login page. (in safari)
` -(void)startloading { nsstring *host = [self.request.url host]; nslog(@"self.request.url = %@",self.request.url); nsdictionary *querydictionary = [self.request.url querydictionary];//application crashing here if ([host isequaltostring:@"oauth"]) { nsstring *oautherrorcode = [querydictionary valueforkey:@"error"]; if (oautherrorcode) { nsstring *oautherrormessage = querydictionary[@"message"] ?: @""; nserror *oautherror = [nserror errorwithdomain:venmosdkdomain code:vensdkerrortransactionfailed description:oautherrormessage recoverysuggestion:@"please try again."]; if ([venmo sharedinstance].oauthcompletionhandler) { [venmo sharedinstance].oauthcompletionhandler(no, oautherror); }
`
help me if has used venmo ios sdk , faced kind of error.
thanks in advance.
Comments
Post a Comment