Skip to content

5.35.0

Choose a tag to compare

@github-actions github-actions released this 05 Aug 09:04
· 38 commits to main since this release
Immutable release. Only release title and notes can be modified.
c88ef11

Minor Changes

  • 2087837: Add push notification support so PostHog Workflows can target Flutter apps: device tokens register automatically on iOS and Android, notification opens are captured as $push_notification_opened, and registerPushNotificationToken, unregisterPushNotificationToken, and capturePushNotificationOpened cover the refresh and warm-start paths auto-detection cannot see.

    Both are enabled by default. An app that already has push configured (for example via firebase_messaging) starts sending its device token to PostHog after this upgrade with no code change. Set capturePushNotificationSubscriptions: false or capturePushNotificationOpened: false on PostHogConfig to opt out. Apps initialized via com.posthog.posthog.AUTO_INIT opt out with the com.posthog.posthog.CAPTURE_PUSH_NOTIFICATION_SUBSCRIPTIONS / com.posthog.posthog.CAPTURE_PUSH_NOTIFICATION_OPENED keys instead (Info.plist on iOS, AndroidManifest <meta-data> on Android), since the Dart-side config does not apply once the native SDK is already set up.

    pushIdentityProvider is a Dart callback, so it has no Info.plist or manifest equivalent: apps using com.posthog.posthog.AUTO_INIT must set it to false and call Posthog().setup(), otherwise the provider is never installed.