The community forums are in BETA and closed to the public.

Can ClientState contain an image bytes to be used as his/her avatar?

         [PubNub subscribeOnChannel:my_channel withClientState:@{@"age": @"69",
                                                                 @"full": @"John Paul Jones",
                                                                 @"country": @"USA",
                                                                 @"appstate": @"logged out",
                                                                 @"latlong": @"38.1075° N, 122.5697° W"}];

You should not attempt to shove huge amounts of data into state. For images, the best practice would be to upload the image to a CDN and add the link to that image in the user's state.


Comments to this discussion are now closed!