How to call LogEvent with AnalyticsEventScreenView in Unity?

Viewed 513
1 Answers

It appears that as of September 24th the Unity SDK is not yet fully updated to use the latest iOS SDK.

But if you manually update the Podfile to use version 6.29.0 (which is when it was introduced) like this:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'

target 'UnityFramework' do
  pod 'Firebase/Analytics', '6.29.0'
  pod 'Firebase/Core', '6.29.0'
end

You can then manually use it like this:

Firebase.Analytics.FirebaseAnalytics.LogEvent("screen_view", 
new Firebase.Analytics.Parameter("screen_name", name));
Related