Skip to content

Commit 9f384cf

Browse files
committed
Feat: add in no ops for NotifyApplifecyclechange
1 parent 5166e78 commit 9f384cf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

analytics/src/analytics_android.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ void ResetAnalyticsData() {
609609
util::CheckAndClearJniExceptions(env);
610610
}
611611

612+
// NO-OP in Android and iOS. Only used in Windows.
613+
void NotifyAppLifecycleChange(AppLifecycleState) {}
614+
612615
Future<std::string> GetAnalyticsInstanceId() {
613616
FIREBASE_ASSERT_RETURN(GetAnalyticsInstanceIdLastResult(),
614617
internal::IsInitialized());
@@ -736,5 +739,6 @@ Future<int64_t> GetSessionIdLastResult() {
736739
internal::kAnalyticsFnGetSessionId));
737740
}
738741

742+
739743
} // namespace analytics
740744
} // namespace firebase

analytics/src/analytics_ios.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ void ResetAnalyticsData() {
379379
g_resetter->Reset();
380380
}
381381

382+
// No-Op on iOS and Android. Only used in Windows desktop apps.
383+
void NotifyAppLifecycleChange(AppLifeCycleState) {}
384+
382385
Future<std::string> GetAnalyticsInstanceId() {
383386
MutexLock lock(g_mutex);
384387
FIREBASE_ASSERT_RETURN(Future<std::string>(), internal::IsInitialized());

0 commit comments

Comments
 (0)