expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.
427 stars 91 forks source link

skAdNetworkHandling always false or null? #158

Closed parK-dev closed 1 year ago

parK-dev commented 1 year ago

Summary

SkAdNetwork always null or false?

AdjustConfig {
  "allowAdServicesInfoReading": null,
  "allowIdfaReading": null,
  "allowiAdInfoReading": null,
  "appToken": "whatever",
  "coppaCompliantEnabled": null,
  "defaultTracker": null,
  "delayStart": null,
  "environment": "sandbox",
  "eventBufferingEnabled": null,
  "externalDeviceId": null,
  "info1": null,
  "info2": null,
  "info3": null,
  "info4": null,
  "isDeviceKnown": null,
  "linkMeEnabled": null,
  "logLevel": "SUPPRESS",
  "needsCost": null,
  "playStoreKidsAppEnabled": null,
  "preinstallFilePath": null,
  "preinstallTrackingEnabled": null,
  "processName": null,
  "readMobileEquipmentIdentity": null,
  "sdkPrefix": "react-native4.32.1",
  "secretId": null,
  "sendInBackground": null,
  "shouldLaunchDeeplink": null,
  "skAdNetworkHandling": false, // This guy here
  "urlStrategy": null,
  "userAgent": null,
}

skAdNetworkHandling is false if adjustConfig.deactivateSKAdNetworkHandling() is called. And null if it isnt. How do we make it true or enabled? If I want Adjust to have access to the StoreKit data?

Config Plugin

@config-plugins/react-native-adjust

What platform(s) does this occur on?

iOS

SDK Version

45

Reproducible demo

import { Adjust, AdjustConfig } from "react-native-adjust";

export function initializeAdjustSdk() {
  const adjustConfig = new AdjustConfig(
    "whatever",
    process.env.NODE_ENV === "production"
      ? AdjustConfig.EnvironmentProduction
      : AdjustConfig.EnvironmentSandbox
  );
  adjustConfig.setLogLevel(AdjustConfig.LogLevelSuppress);
  adjustConfig.deactivateSKAdNetworkHandling(); // Will set to false or will be null if we dont call this

  console.log(adjustConfig);
  Adjust.create(adjustConfig);
}