Minor Changes
-
c37aea6: Add push notification support for PostHog Workflows. The SDK now registers the device's APNs token (iOS) so Workflows can deliver push notifications, and captures a
$push_notification_openedevent when a notification is tapped. Both are on by default and can be turned off with the newcapturePushNotificationSubscriptionsandcapturePushNotificationOpenedconfig flags. For setups that don't use swizzling, useregisterPushNotificationToken(_:appId:)andcapturePushNotificationOpened(response:)to feed these manually, orcapturePushNotificationOpened(title:subtitle:body:payload:action:)when noUNNotificationResponseis available. Onreset()the token is unregistered for the logged-out user and re-registered under the new anonymous id, andunregisterPushNotificationToken()lets you unregister manually. -
fix:
identify()no longer leaves a user anonymous when the supplied ID already matches the persisted distinct ID (for example after a non-identified bootstrap seeded the same ID); the SDK now marks the user identified and captures a person-processed$setevent. The identity transition is now atomic, so concurrentidentify()calls can no longer emit duplicate person events for the same transition