setCollectIMEI method

void setCollectIMEI(
  1. bool isCollect
)

Opt-out of collection of IMEI. If the app does NOT contain Google Play Services, device IMEI is collected by the SDK. However, apps with Google play services should avoid IMEI collection as this is in violation of the Google Play policy.

Implementation

void setCollectIMEI(bool isCollect) {
  _methodChannel.invokeMethod("setCollectIMEI", {'isCollect': isCollect});
}