Library does not automatically collect IAP Order Completed events, despite what docs say
Describe the bug Native mobile docs (https://segment.com/docs/connections/spec/mobile/) state:
Additionally, though they’re not formally part of the Native Mobile Spec, Segment also collects Order Completed from our ecommerce spec automatically upon in-app purchases on iOS and can collect screen views automatically in iOS and Android.
But I don't think this is true when using the analytics-swift library, is it?
I think it's maybe worth:
- updating the docs accordingly
- providing an example of plugin for how to automatically collect IAP events using analytics-swift
That's a great callout, thanks @jb-delightai. In the meantime, the one from analytics-ios might be helpful. A swift implementation wouldn't be too far off from what's here: https://github.com/segmentio/analytics-ios/blob/master/Segment/Internal/SEGStoreKitTracker.m
Awesome, thank you! You wouldn't happen to have any example code for StoreKit v2 transactions, would you? 😃
I don't unfortunately; sorry I missed your reply previously.
I'm gonna close this and we're gonna update the doc accordingly. I have an internal ticket filed to get that done.