analytics-ios icon indicating copy to clipboard operation
analytics-ios copied to clipboard

Add category parameter to screen tracking

Open joelmarquez90 opened this issue 8 years ago • 3 comments

There is something weird. You actually have support for the category parameter on the screen tracking method on both Android and Xamarin, but not on iOS.

And what's more weird is that on the Screen spec you don't mention it anywhere.

Why do you have this inconsistency of parameters support / documentation?

joelmarquez90 avatar Dec 19 '17 12:12 joelmarquez90

The category as a top level field is being deprecated. You should send it as a property instead.

Android did deprecate this in the JavaDocs https://github.com/segmentio/analytics-android/blob/master/analytics/src/main/java/com/segment/analytics/Analytics.java#L639; but not in our public docs. We'll get that updated.

We'll also get this fixed in Analytics.NET (which is replacing Analytics.Xamarin).

I'm closing this issue here as there isn't any action item for the analytics-ios library.

f2prateek avatar Dec 19 '17 18:12 f2prateek

Sorry about the confusion, I've created internal follows up tickets to get this fixed in Analytics.NET and the docs for analytics-android updated.

f2prateek avatar Dec 19 '17 18:12 f2prateek

Thanks @f2prateek !

joelmarquez90 avatar Dec 19 '17 19:12 joelmarquez90