-
Notifications
You must be signed in to change notification settings - Fork 32
[Oztechan/CCC#4572] Fix iOS too often interstitial Ad issue #4573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,16 +86,13 @@ struct Application: App { | |
| } | ||
|
|
||
| private func onScenePhaseChange(phase: ScenePhase) { | ||
| logger.i(message: { "Application onChange scenePhase \(phase)" }) | ||
| logger.i(message: { "Application onChange scenePhase ground \(phase)" }) | ||
|
|
||
| switch phase { | ||
| case .active: | ||
| observable.event.onAppForeground() | ||
| case .inactive: | ||
| // only when come from active, since it visits inactive while coming from background | ||
| if scenePhase == .active { | ||
| observable.event.onAppBackground() | ||
| } | ||
| observable.event.onAppBackground() | ||
|
||
| case .background: | ||
| scheduleAppRefresh() | ||
| @unknown default: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log message contains what appears to be a typo: "scenePhase ground" should likely be just "scenePhase" to match the original intent and maintain consistency with other log messages.