isServerCommunicationAllowed

Checks if communication with Pushwoosh server is currently allowed.

This method returns the current state of server communication. It returns false if stopServerCommunication was called and true after startServerCommunication. Example:


  if (Pushwoosh.getInstance().isServerCommunicationAllowed()) {
      Log.d("Pushwoosh", "Server communication is enabled");
      Pushwoosh.getInstance().registerForPushNotifications();
  } else {
      Log.d("Pushwoosh", "Server communication is disabled");
  }

Return

true if communication with Pushwoosh server is allowed, false otherwise

See also