Files
react-native-firebase/docs/analytics/ios.md
2019-07-12 15:20:14 +01:00

1.2 KiB

title, description
title description
iOS Setup Manually integrate Analytics into your iOS application.

iOS Manual Linking

Manual iOS Integration via CocoaPods

The following steps are only required if your environment does not have access to React Native auto-linking.

Add Analytics Pod

ios/Podfile:

// ..
target 'app' do
  // ..
  pod 'RNFBAnalytics', :path => '../node_modules/@react-native-firebase/analytics/ios'
end

Manual iOS Integration via Frameworks

TODO

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. 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 supported by react-native-firebase):

ios/Podfile:

// ..
target 'app' do
  // ..
  pod 'RNFBAnalytics', :path => '../node_modules/@react-native-firebase/analytics/ios'
  pod 'GoogleIDFASupport', '~> 3.14.0'
end