android/sdk/src/main/java/io/o2mc/sdk/util/Util.java
public static boolean isAllowedToDispatchEvents(boolean usingHttpEndpoint) {
    // Https traffic is always allowed
    if (usingHttpEndpoint) {
      return true;
    }

    //noinspection SimplifiableIfStatement
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
      return NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted();
    }
    return true;
  }
/**
   * Checks whether or not the client is allowed to dispatch events to the backend.
   *
   * @param usingHttpEndpoint indicates whether or not app is using the HTTPS protocol to dispatch events
   * @return true if this client is allowed to dispatch events
   */
Checks whether or not the client is allowed to dispatch events to the backend.
@param usingHttpEndpoint indicates whether or not app is using the HTTPS protocol to dispatch events
@return true if this client is allowed to dispatch events
Checks whether or not the client is allowed to dispatch events to the backend . @param usingHttpEndpoint indicates whether or not app is using the HTTPS protocol to dispatch events @return true if this client is allowed to dispatch events
public static boolean isAllowedToDispatchEvents(boolean usingHttpEndpoint) {
    if (usingHttpEndpoint) {
      return true;
    }
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
      return NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted();
    }
    return true;
  }
public static boolean isAllowedToDispatchEvents ( boolean usingHttpEndpoint ) { if ( usingHttpEndpoint ) { return true ; } if ( android . os . Build . VERSION . SDK_INT >= android . os . Build . VERSION_CODES . M ) { return NetworkSecurityPolicy . getInstance ( ) . isCleartextTrafficPermitted ( ) ; } return true ; }
Checks whether or not the client is allowed to dispatch events to the backend.
Checks whether or not the client is allowed to dispatch events to the backend .
// Https traffic is always allowed //noinspection SimplifiableIfStatement