iOS SDK 2.3.0+ only.

Here's how to execute some code once user registered on PushBots, the code will be executed only once and only on a successful registration of the device on PushBots:

Add the code below to didFinishLaunchingWithOptions function in AppDelegate file:

//Registered callback
[Pushbots onRegistered:^(NSString *userid) {
    NSLog(@"USERID %@", userid);
Did this answer your question?