The community forums are in BETA and closed to the public.

Couldn't find add listener

Hi PubNub Team

I am trying to integrate group chat functionality in my app using PubNub in Swift. In order to do so, I followed your blog

I did everything smoothly but there was an error in this line client?.addListener(self)

It stated that "No member name available"

I have also created a question on stackoverflow

Please help me on that. I ll love to use PubNub in my app and also want to clarify some more queries as I progress.

Hoping to hear soon

Thanks Rajan Maheshwari

You should make sure to add PNObjectEventListener as a conforming protocol to your class declaration.

class AppDelegate: UIResponder, UIApplicationDelegate, PNObjectEventListener

Comments to this discussion are now closed!