Closed joshkopecek closed 4 years ago
Hi @joshkopecek , very strange. If I try to background/foreground the app (CocoaPodsExample in the posthog-ios repo), everything works fine.
How can I reproduce this? Can you show the exact line in posthog where the crash happens? I fixed another bug in the iOS library today and added a few things, so it might be worth upgrading to 1.0.3
as well just in case.
Just tried with v1.0.3. I get a fault with isAdvertisingCapturingEnabled
when returning to foreground (action as above).
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ASIdentifierManager isAdvertisingCapturingEnabled]: unrecognized selector sent to instance 0x2826a7170'
Which is in PHPPostHogIntegration.m
Hi @joshkopecek , thanks for that! I think I found and fixed the bug. Could you test if with 1.0.4 everything works?
@mariusandra yes, that works! Nice work. I haven't got any more crashes, going to push this out in our app now. 🤞
Great! If you have any other issues or feedback, don't hesitate to share them :)
Got a reproducible error with 1.0.2 when entering foreground after having backgrounded the app. Seems to be a similar problem with the selectors as the previous
didFinishLaunching
crash.Here is the crashlog: