I am trying out the cloud SDK for iOS, and when calling on my OCRSDKClient instance the method:

  • (void)activateInstallationWithDeviceId:(NSString )deviceId success:(void (^)(void))success failure:(void (^)(NSError error))failure force:(BOOL)force

In the success block when parsing the XML I can see the authToken return is empty... which then fail on


So where I am not 100% sure -and the doc are not really clear, when creating the instance of OCRSDKClient what value should I pass for the applicationID ? Should it be the name of my app which is something like "TestOCRXX" or should it be some kind of ID? If this is some kind of ID where can I find it? The management area doesn't show any of that.

Thank! Really curious to try the SDK out.

[Edit] just to be clear I start my app by doing:

self.ocrClient = [OCRSDKClient clientWithApplicationId:@"TestOCRXX" password:@"XXXXX"];

and yes I double checked the app name and password. The app name is the one that appear in my management UI, and I can see that it has the default number of free pages for trial. HELP! I am trying in the Simulator... Should it be tried on a device?

asked 25 Jul '13, 06:10

iosdev's gravatar image


edited 25 Jul '13, 06:38

The code you cite is from some very old sample. The updated sample is here https://github.com/abbyysdk/ocrsdk.com/tree/master/iOS - you should pass the application id which is the same as your application name.

(26 Jul '13, 17:12) Dmitry Me ♦♦

I am using the appropriate latest SDK... Remember I am not using the example code provided but my own code using directly the OCRSDKClient class instead of subclassing. The problem happen when calling the activateInstallationWithDeviceId: API which trigger the call to the server but return always an empty authToken in the XML but then because the authToken is empty the NSParameterAssert() fail and the app can't go further.

(26 Jul '13, 18:58) iosdev

The SDK I am using is: https://github.com/abbyysdk/iOS.POD.OCRSDKClient/blob/master/OCRSDKClient/OCRSDKClient.m

and the failure is happening at line 98 just after the code check the authToken...

(26 Jul '13, 19:00) iosdev

Could you please try to run our latest sample https://github.com/abbyysdk/ocrsdk.com/tree/master/iOS using the quick start guide http://ocrsdk.com/documentation/quick-start/iphone-ocr-sdk/ and let us know if the issue occurs in this case?


answered 31 Jul '13, 09:29

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦


Thank... using the latest SDK works! The example did work, and then re-using the latest SDK in my project worked too.

(01 Aug '13, 11:30) Anastasia Ga... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 25 Jul '13, 06:10

Seen: 1,686 times

Last updated: 01 Aug '13, 11:30

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal