Pubnub connect in appdelegate