Skip to content

Commit

Permalink
fix: fixed streaming connection not connecting when control center is…
Browse files Browse the repository at this point in the history
… dismissed
  • Loading branch information
jsalaber committed Oct 4, 2024
1 parent 7a9c1f7 commit 49b78dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DevCycle/DevCycleClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public class DevCycleClient {
selector: #selector(appMovedToForeground),
name: UIApplication.willEnterForegroundNotification,
object: nil)
NotificationCenter.default.addObserver(self,
selector: #selector(appMovedToForeground),
name: UIApplication.didBecomeActiveNotification,
object: nil)
#elseif os(watchOS)
NotificationCenter.default.addObserver(self,
selector: #selector(appMovedToBackground),
Expand Down

0 comments on commit 49b78dc

Please sign in to comment.