Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isAutoLogAppEventsEnabled #2350

Open
5 tasks done
akuzminskyi opened this issue Mar 1, 2024 · 0 comments
Open
5 tasks done

isAutoLogAppEventsEnabled #2350

akuzminskyi opened this issue Mar 1, 2024 · 0 comments

Comments

@akuzminskyi
Copy link

Checklist before submitting a bug report

Xcode version

15.2

Facebook iOS SDK version

16.3.1

Dependency Manager

CocoaPods

SDK Framework

Core

Goals

be able to temporally disable isAutoLogAppEventsEnabled based on the documentation

In some cases, you want to delay the collection of automatically logged events, such as to obtain User consent or fulfill legal obligations, instead of disable it. In this case, set Settings.shared.isAutoLogAppEventsEnabled = true to re-enable auto-logging after the end-user provides consent.
To suspend collection again for any reasons, set Settings.shared.isAutoLogAppEventsEnabled = false.

Expected results

The value of Settings.shared.isAutoLogAppEventsEnabled should changed based on the passed value. If the value set true it should return true, if the value set false it should return false.

We used to Facebook SDK 13.2 and it was working.

Actual results

Settings.shared.isAutoLogAppEventsEnabled It always returns true, and ignores new assigned value false.

Screenshot 2024-03-01 at 09 03 40

Steps to reproduce

    let settings = FBSDKCoreKit.Settings.shared

    settings.isAutoLogAppEventsEnabled = false
    XCTAssertFalse(settings.isAutoLogAppEventsEnabled)
    settings.isAutoLogAppEventsEnabled = true
    XCTAssertTrue(settings.isAutoLogAppEventsEnabled)
    settings.isAutoLogAppEventsEnabled = false
    XCTAssertFalse(settings.isAutoLogAppEventsEnabled)

Code samples & details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant