putClass and Java package names

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

Post Reply
senojsitruc
Posts: 1
Joined: 10 Apr 2013, 17:35
Location: Atlanta, GA
Contact:

putClass and Java package names

Post 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.
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: putClass and Java package names

Post 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
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Post Reply