Does PubNub support the cocos2d environment?

Yes, see the source code and basic API functions in PubNub's Objective-C SDK which you can use (similar to Corona SDK) to pass in a delegate callback method, executed upon a message arrival.