I was just trying out a sample project on OCR. I got it from gitHub link. I added the applicationId and password and when I execute it, it gets crashed as the token is empty. This is the point where its crashing.
NSString *installationId = [responseDictionary valueForKey:@"authToken"];
[[NSUserDefaults standardUserDefaults] setObject:installationId forKey:kOCRSDKInstallationId]; NSParameterAssert(self.installationId);
I cant figure out what I am doing wrong here. Please help
asked 20 Jun '13, 15:53
meera j pai
there seems to be a problem in the iOS example. It's trying to activate an 'installationId' before submitting the HTTP requests which IMHO is not necessary.
Change the method
activateInstallationWithDeviceId in ocrsdk.com/iOS/Pods/OCRSDKClient/OCRSDKClient/OCRSDKClient.m:82
and it should work.
answered 29 Jun '13, 11:19
We apologize for the long delay.
1) According to the logs of your account, you have registered two applications: "OCRTestDemo" and "CharacterReaderDemo". Only the first one has available pages for the recognition for free. Could you please clarify, if the error occurs when ApplicationID="OCRTestDemo"?
Thank you for the answers.
answered 28 Jun '13, 12:29
Anastasia Ga... ♦♦