How do I pass Segment Anonymous ID in React Native when configuring Segment Export?

The Segment Anonymous ID can be passed with the React-Native plugin by following the methods below:

iOS (Inside didFinishLaunchingWithOptions):
RNBranch.setRequestMetadataKey("$segment_anonymous_id", "value")

Android (Before you initialize in your Application#onCreate or Deep Link Activity's #onCreate):
RNBranchModule.setRequestMetadata("$segment_anonymous_id", "value");


이 페이지가 도움이 되었습니까?