startServerCommunication

Starts communication with the Pushwoosh server.

This method enables communication with Pushwoosh servers, allowing the SDK to send and receive data. Use this in conjunction with stopServerCommunication to implement GDPR compliance or user privacy preferences. Example:


  // User accepts privacy policy
  if (userAcceptsPrivacyPolicy()) {
      Pushwoosh.getInstance().startServerCommunication();
      Pushwoosh.getInstance().registerForPushNotifications();
  }

See also