Skip to content
Cappuccino wrapper for the Beacon Push javascript client
Objective-J
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
BeaconController.j
README.markdown

README.markdown

Cappucino Beacon Push

This is a Cappuccino wrapper for the Beacon Push Javascript client.

Example

@import "BeaconController.j"


@implementation AppController : CPObject
{
}

- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{

    ...

    [[BeaconController sharedController] connectWithKey:@"my-api-key" channel:@"myTestChannel"];
    [[BeaconController sharedController] addObserver:self selector:@selector(didReceiveMessage:)];
}

- (void)didReceiveMessage:(CPNotification)aNotification
{
    var message = [aNotification object];

    console.log('Received message: ' + message);
}

@end
Something went wrong with that request. Please try again.