apps-sdk 1.1.54 → 1.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AppEventsLogger, Settings } from 'react-native-fbsdk-next';
|
|
2
2
|
import * as config from '../../config';
|
|
3
3
|
import Networking from "./Networking";
|
|
4
|
+
import TrackingTransparency from './TrackingTransparency';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* "react-native-fbsdk-next" events coding:
|
|
@@ -43,6 +44,10 @@ class Facebook {
|
|
|
43
44
|
// Settings.setAutoInitEnabled(true);
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
const trackingStatus = await TrackingTransparency.getTrackingTransparencyPermission();
|
|
48
|
+
await Settings.setAdvertiserTrackingEnabled(trackingStatus === 'granted');
|
|
49
|
+
config.DEBUG_MODE && console.log('Facebook Tracking Transparency status:', trackingStatus);
|
|
50
|
+
|
|
46
51
|
await Settings.initializeSDK();
|
|
47
52
|
|
|
48
53
|
this.isInitialized = true;
|