Page 1 of 1

putClass and Java package names

Posted: 10 Apr 2013, 18:15
by senojsitruc
This is my first time working with SFS and its iOS SDK. I hope I haven't overlooked some obvious documentation on this issue. I searched through all of the iOS example projects and couldn't find the answer.

On the server and Android side of this project, putClass() is used to send a value object with a package path, such as: com.mycompany.product.ValueObject.

I'm attempting to send the same value object via iOS, but it seems the SFS SDK uses NSStringFromClass() or something similar to get the class name of the "id" I pass as an argument to putClass(). That class name obviously doesn't have the same lengthy package path that the server expects.

Are there any work-arounds to this other than ditching putClass() entirely?

Thanks for your help.

Re: putClass and Java package names

Posted: 10 Apr 2013, 18:57
by A51Integrated
Sorry, but it's just not possible with the iOS API. See this post from a while back:

http://forums.smartfoxserver.com/viewto ... ass#p56583