PostHog / posthog-ios

PostHog iOS SDK
https://posthog.com/docs/libraries/ios
MIT License
29 stars 37 forks source link

Crash on notification payload send #61

Closed bddq closed 9 months ago

bddq commented 11 months ago

Hi,

I got an exception while using PHGPostHog.shared()?.receivedRemoteNotification(userInfo).

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PHGPostHogIntegration receivedRemoteNotification:]: unrecognized selector sent to instance'
terminating with uncaught exception of type NSException

It seems that receivedRemoteNotification is not yet implemented. I'm using PostHog SDK 2.0.3 through SPM.

Am I doing something wrong?

Thanks for your help. Benoit

marandaneto commented 9 months ago

Fixed already https://github.com/PostHog/posthog-ios/releases/tag/2.0.4 Thanks!