Pusheo Documentation

Step by step instructions for easy installation and configuration of Pusheo.

Prepare for callbacks

  • For activating the callback mechanism, you need to implement ‘PusheoDelegate’ protocol which defines callback methods as follows:
@protocol PusheoDelegate 

- (void) onOpen;
- (void) onClose;
- (void) onMessage: (NSString *) message;
- (void) onMessageSent: (NSString *)message;
- (void) onError: (NSError *) reason;
- (void) onHistoryReceived: (NSString *)history;

@end

For implemeting above methods, set the ‘pusheoDelegate’ property of above initialized object as self.

pusheo.pusheoDelegate=self;