Reputation: 21
The blog post at https://firebase.googleblog.com/2020/08/google-analytics-manual-screen-view.html mentions that calling SetCurrentScreen is depricated.
Is this also the case for Firebase Analytics in Unity? I can't seem to call LogEvent with AnalyticsEventScreenView parameter.
Thanks in advance.
Upvotes: 2
Views: 898
Reputation: 2522
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));
Upvotes: 1