PostHog / posthog-flutter

PostHog Flutter SDK
https://posthog.com/docs/libraries/flutter
MIT License
55 stars 37 forks source link

Automatic lifecycle events don't work #63

Closed rohan-mehta closed 11 months ago

rohan-mehta commented 11 months ago

Version

3.3.0

Steps to Reproduce

Set this in the iOS Info.plist:

<key>com.posthog.posthog.TRACK_APPLICATION_LIFECYCLE_EVENTS</key>
<true/>

Then launch the app.

Expected Result

App lifecycle events should be logged - e.g. app open

Actual Result

No lifecycle events logged. Other events (e.g. identify, screen, captured events) work fine.

marandaneto commented 11 months ago

@rohan-mehta thanks for reporting this. For some reason, the key is com.posthog.posthog.CAPTURE_APPLICATION_LIFECYCLE_EVENTS for iOS, I've fixed the readme file and example.