Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ten-ears-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@theoplayer/react-native-analytics-conviva': patch
---

Fixed an issue where on iOS the stopAndStartNewSession was blocked when the player was in a paused state.
3 changes: 1 addition & 2 deletions conviva/ios/THEOplayerConvivaRCTConvivaAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ class THEOplayerConvivaRCTConvivaAPI: NSObject, RCTBridgeModule {
log("stopAndStartNewSession triggered")
DispatchQueue.main.async {
if let connector = self.connectors[node],
let contentInfo = metadata as? [String: Any],
self.player(for: node)?.paused == false {
let contentInfo = metadata as? [String: Any] {
log("reporting stopAndStartNewSession")
connector.stopAndStartNewSession(contentInfo: contentInfo)
}
Expand Down
Loading