Skip to content

Commit

Permalink
Update NetworkConnectivityCheckerPlugin.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Feb 8, 2024
1 parent 2fd0b3d commit 65a05ca
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ open class NetworkConnectivityCheckerPlugin: BeforePlugin {
let isOnline = networkPath.status == .satisfied
self?.amplitude?.logger?.debug(message: "Network connectivity changed to \(isOnline ? "online" : "offline").")
self?.amplitude?.configuration.offline = !isOnline
if isOnline {
amplitude.flush()
}
})
}

Expand Down

0 comments on commit 65a05ca

Please sign in to comment.