diff --git a/.changeset/real-papayas-glow.md b/.changeset/real-papayas-glow.md new file mode 100644 index 00000000..9bdfc41e --- /dev/null +++ b/.changeset/real-papayas-glow.md @@ -0,0 +1,5 @@ +--- +'@theoplayer/react-native-analytics-bitmovin': patch +--- + +Fixed an issue on iOS where the updateCustomData method was not correctly bridged. diff --git a/bitmovin/ios/THEOplayerBitmovinRCTBitmovinAPI.swift b/bitmovin/ios/THEOplayerBitmovinRCTBitmovinAPI.swift index cc5301e1..93a0c796 100644 --- a/bitmovin/ios/THEOplayerBitmovinRCTBitmovinAPI.swift +++ b/bitmovin/ios/THEOplayerBitmovinRCTBitmovinAPI.swift @@ -62,9 +62,9 @@ class THEOplayerBitmovinRCTBitmovinAPI: NSObject, RCTBridgeModule { } } - @objc(updateCustomMetadata:customData:) - func updateCustomMetadata(_ node: NSNumber, customData: NSDictionary) { - log("updateCustomMetadata triggered.") + @objc(updateCustomData:customData:) + func updateCustomData(_ node: NSNumber, customData: NSDictionary) { + log("updateCustomData triggered.") DispatchQueue.main.async { if let customMetadata = customData as? [String:Any] { self.connectors[node]?.updateCustomMetadata(customMetadata) diff --git a/bitmovin/ios/THEOplayerBitmovinRCTBridge.m b/bitmovin/ios/THEOplayerBitmovinRCTBridge.m index 5bf76f54..675ae04c 100644 --- a/bitmovin/ios/THEOplayerBitmovinRCTBridge.m +++ b/bitmovin/ios/THEOplayerBitmovinRCTBridge.m @@ -13,7 +13,7 @@ @interface RCT_EXTERN_REMAP_MODULE(BitmovinModule, THEOplayerBitmovinRCTBitmovin RCT_EXTERN_METHOD(updateSourceMetadata:(nonnull NSNumber *)node sourceMetadata:(nonnull NSDictionary *)sourceMetadata) -RCT_EXTERN_METHOD(updateCustomMetadata:(nonnull NSNumber *)node customData:(nonnull NSDictionary *)customData) +RCT_EXTERN_METHOD(updateCustomData:(nonnull NSNumber *)node customData:(nonnull NSDictionary *)customData) RCT_EXTERN_METHOD(programChange:(nonnull NSNumber *)node sourceMetadata:(nonnull NSDictionary *)sourceMetadata)