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

Posthog().disable() is not working for iOS. #91

Closed
TaranenkoDenis opened this issue Mar 5, 2024 · 3 comments · Fixed by PostHog/posthog-ios#114
Closed

Posthog().disable() is not working for iOS. #91

TaranenkoDenis opened this issue Mar 5, 2024 · 3 comments · Fixed by PostHog/posthog-ios#114
Labels
bug Something isn't working

Comments

@TaranenkoDenis
Copy link

TaranenkoDenis commented Mar 5, 2024

Version

4.1.0

Steps to Reproduce

  1. flutter pub add posthog_flutter
  2. Call Posthog().disable() after app starts on iOS simulator or device.
  3. Send some events to the Posthog.

Expected Result

Posthog doesn't send events after disabling.

Actual Result

All events, including autocaptured, are shown in the Activity area after disabling.

@TaranenkoDenis TaranenkoDenis added the bug Something isn't working label Mar 5, 2024
@TaranenkoDenis
Copy link
Author

I want to add that everything works fine on Android. When I try to send an event after disabling, I see the following message in the logs: PostHog is in OptOut state. And not a single sent event is displayed in the Activity area.

@marandaneto
Copy link
Member

@TaranenkoDenis I can confirm that, on it.

@marandaneto
Copy link
Member

If you upgrade your cocoapods, the iOS SDK version 3.2.3 should have fixed this, thanks for reporting @TaranenkoDenis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants