Skip to content

Commit 168143a

Browse files
committed
SDK-802 fix android setMetadata
1 parent 0af95d1 commit 168143a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/io/branch/rnbranch/RNBranchModule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,9 @@ public void setIdentity(String identity) {
384384

385385
@ReactMethod
386386
public void setRequestMetadataKey(String key, String value) {
387-
setRequestMetadata(key, value);
387+
// setRequestMetadata does not do what it appears to do. Call directly to the native code.
388+
Branch branch = Branch.getInstance();
389+
branch.setRequestMetadata(key, value);
388390
}
389391

390392
@ReactMethod

0 commit comments

Comments
 (0)