{"action":"opened","issue":{"url":"https://api.github.com/repos/venmo/venmo-ios-sdk/issues/87","labels_url":"https://api.github.com/repos/venmo/venmo-ios-sdk/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/venmo/venmo-ios-sdk/issues/87/comments","events_url":"https://api.github.com/repos/venmo/venmo-ios-sdk/issues/87/events","html_url":"https://github.com/venmo/venmo-ios-sdk/issues/87","id":97432036,"number":87,"title":"Venmo iOS sdk crashing application, when Venmo returning back to app after login to Venmo from safari","user":{"login":"userdivya","id":13519686,"avatar_url":"https://avatars.githubusercontent.com/u/13519686?v=3","gravatar_id":"","url":"https://api.github.com/users/userdivya","html_url":"https://github.com/userdivya","followers_url":"https://api.github.com/users/userdivya/followers","following_url":"https://api.github.com/users/userdivya/following{/other_user}","gists_url":"https://api.github.com/users/userdivya/gists{/gist_id}","starred_url":"https://api.github.com/users/userdivya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/userdivya/subscriptions","organizations_url":"https://api.github.com/users/userdivya/orgs","repos_url":"https://api.github.com/users/userdivya/repos","events_url":"https://api.github.com/users/userdivya/events{/privacy}","received_events_url":"https://api.github.com/users/userdivya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T10:23:16Z","updated_at":"2015-07-27T10:23:16Z","closed_at":null,"body":"I am using Venmo iOS sdk in my application, i have done pod file installation and all. I have Venmo app id and secret key, using same i am able to login to venmo from the sample app provided by Venmo, but if i use same app id and secret key in my application then it is getting crashed in \"startLoading\" method in \"VENURLProtocol.m\" class. Getting '[NSURL queryDictionary]: unrecognized selector sent to instance' this error.\r\n\r\nBelow is the method in which my app is crashing.This method gets executed after clicking on Allow button on Venmo login page. (in safari)\r\n\r\n\r\n\r\n\r\n -(void)startLoading {\r\n\r\nNSString *host = [self.request.URL host];\r\n\r\nNSLog(@\"self.request.URL = %@\",self.request.URL);\r\n\r\nNSDictionary *queryDictionary = [self.request.URL queryDictionary];  ///////Application is crashing here\r\n\r\nif ([host isEqualToString:@\"oauth\"]) {\r\n\r\n    NSString *oAuthErrorCode = [queryDictionary valueForKey:@\"error\"];\r\n\r\n    if (oAuthErrorCode) {\r\n        NSString *oAuthErrorMessage = queryDictionary[@\"message\"] ?: @\"\";\r\n        NSError *oAuthError = [NSError errorWithDomain:VenmoSDKDomain\r\n                                                  code:VENSDKErrorTransactionFailed\r\n                                           description:oAuthErrorMessage\r\n                                    recoverySuggestion:@\"Please try again.\"];\r\n        if ([Venmo sharedInstance].OAuthCompletionHandler) {\r\n            [Venmo sharedInstance].OAuthCompletionHandler(NO, oAuthError);\r\n        }\r\n\r\n\r\n\r\n\r\nHelp me if anyone has used the Venmo iOS sdk and faced this kind of error.\r\n\r\nThanks in advance."}}