From 00aacebd456133d35ac4568fd19a2d0100ad4f1a Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Fri, 26 Apr 2019 11:50:55 -0500 Subject: [PATCH] [analytics] add iOS audience stats integration guide (#2082) * docs: noted iOS pod needed for iOS audience stats Per discussion on #2071 - added a note about the cocoapod required for automatic audience metric collection on iOS * Update ios.md [skip ci] --- docs/analytics/ios.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/analytics/ios.md b/docs/analytics/ios.md index 0e3e2ef8..ebbbc50f 100644 --- a/docs/analytics/ios.md +++ b/docs/analytics/ios.md @@ -5,6 +5,16 @@ description: Manually integrate Analytics into your iOS application. # iOS Setup +## Device Identification + +If you would like to enable Firebase Analytics to generate automatic audience metrics for iOS (as it does by default in Android), you must link additional iOS libraries, [as documented by the Google Firebase team](https://support.google.com/firebase/answer/6318039). Specifically you need `libAdIdAccess.a` and `AdSupport.framework`. + +The way to do this using Cocoapods is to add this to your Podfile (though please use [the most current Pod version](https://cocoapods.org/pods/GoogleIDFASupport) supported by react-native-firebase): + +```ruby + pod 'GoogleIDFASupport', '~> 3.14.0' +``` + > The following steps are only required if your environment does not have access to React Native auto-linking.