Closed nservidio closed 3 years ago
I also tried adding the following code snippet:
Settings.loggingBehaviors = [.appEvents, .graphAPIDebugInfo, .informational, .networkRequests]
Settings.setDataProcessingOptions([SharedConstants.limitedDataUse], country: 0, state: 0)
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
DispatchQueue.main.asyncAfter(deadline: .now() + 30) {
print("Should we limit? \(Settings.shouldLimitEventAndDataUsage)")
}
I ran the app in a simulator with location simulating San Francisco, CA
I got plenty of logs, but nothing related to LDU mode.
I'm not sure if shouldLimitEventAndDataUsage
is related to "LDU" mode, but I got:
Should we limit? false
@nservidio - I see it in the post parameters if I breakpoint on https://github.com/facebook/facebook-ios-sdk/blob/78b1ece19e315ef2178844fab9de8db5f88b195b/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m#L1295-L1296
Do you see it there?
I'm not sure if shouldLimitEventAndDataUsage is related to "LDU" mode
This is unrelated. Based on flag limitEventAndDataUsage
. According to the docs:
Gets whether data such as that generated through FBSDKAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches.
Seems resolved.
Checklist
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
11.3.1
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
[Carthage]
version0.46.1+nsoperations
Goals
What do you want to achieve?
Sorry, I may be missing something simple here!
I'd like to be able to verify that adding:
to my code is correctly "limiting data use".
See https://developers.facebook.com/docs/marketing-apis/data-processing-options
Expected Results
Expected to see some "ldu" or "data_processing_options" parameter in the graph response or request.
Actual Results
Didn't see an "ldu" or "data_processing_options" parameter in the graph response or request.
Steps to Reproduce
Code Samples & Details
See Goals section.