   subscribeNotification: (callback) ->
 
     { nickname } = whoami().profile
-    { environment } = globals.config
-    channelName = "notification-#{environment}-#{nickname}"
-    options = { channelName }
-    options.authenticate =
-      endPoint : '/api/gatekeeper/subscribe/notification'
-      data     : { id: whoami().socialApiId }
-
-    options.pbInstance = @pbNotification
-
-    @subscribePubNub options, callback
+
+    if @isPubNubEnabled()
+
+      { environment } = globals.config
+      channelName = "notification-#{environment}-#{nickname}"
+      options = { channelName }
+      options.authenticate =
+        endPoint : '/api/gatekeeper/subscribe/notification'
+        data     : { id: whoami().socialApiId }
+
+      options.pbInstance = @pbNotification
+
+      @subscribePubNub options, callback
+
+    else
+
+      callback null, @nodeNotificationClient
+
 
 
   subscribePubNub: (options = {}, callback) ->


  initNodeNotification: ->

    (new NodeNotificationClient).connect()

    # this is used for preventing datadog
    unless @localStorage.getValue 'ForbiddenChannels'
      @localStorage.setValue 'ForbiddenChannels', {}


  isPubNubEnabled: ->

    { pubnub } = globals.config
    return pubnub.enabled and pubnub.subscribekey


  initPubNub: ->
