2014-07-15 63 views
0

如何將推送客戶端連接到heroku環境。如何在iOS中將推送客戶端連接到Heroku

self.client = [PTPusher pusherWithKey:PusherAppKey delegate:self encrypted:YES]; 
_client.authorizationURL = [NSURL URLWithString:@"XXXXX.com"]; 

[self.client connect]; 
self.channel = [_client subscribeToChannelNamed:@"XXXXXXXXXXXXXXX"]; 
[self.client bindToEventNamed:@"XXXXXXXXXXXXX" target:self action:@selector(handleNewMessageEvent:)]; 

回答

0

我有同樣的問題,我做

self.client = [PTPusher pusherWithKey:PusherAppKey delegate:self encrypted:NO]; 
解決它
相關問題