segment-integrations / analytics-ios-integration-firebase

Segment's bundled integration for Firebase on iOS
MIT License
13 stars 92 forks source link

Refactor track util methods, update event mapping, format date #10

Closed ladanazita closed 6 years ago

ladanazita commented 6 years ago

We were incorrectly mapping Firebase events and params, reference here.

Also removed logic to handle checking for a number value within an NSString, as Firebase does not document the need to handle that.

Firebase required dates be formatted as YYYY-MM-DD. The logic checks an iso8601 NSString because analytics-ios will convert NSDate time to an iso8601 formatted string.