We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5e980 commit a658633Copy full SHA for a658633
Sources/PopupBridge/AnalyticsService.swift
@@ -28,7 +28,11 @@ final class AnalyticsService: AnalyticsServiceable {
28
29
func performEventRequest(_ eventName: String, sessionID: String) async {
30
let body = createAnalyticsEvent(eventName: eventName, sessionID: sessionID)
31
- try? await networkClient.post(url: url, body: body)
+ do {
32
+ try await networkClient.post(url: url, body: body)
33
+ } catch {
34
+ NSLog("[PopupBridge SDK] Failed to send analytics: %@", error.localizedDescription)
35
+ }
36
}
37
38
// MARK: - Private Methods
0 commit comments