1

https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk

I would like to know which is the best way to implement url handling in React Native. There is documentation for both android and iOS (link at the bottom) on how to do that but when it comes to React Native there is no information anywhere. For Android there are pieces of code in Kotlin and for iOS happens the same but in Swift.

As you know, React Native uses Java/Objective-c out of the box and there is no clarification on how to implement those changes in those language. I think RN is wired differently and I do not know if is a matter of translating the code and putting it in the same place as the other documentation says. Some guidance would be much apreciated.

Thanks.

https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/sdk-implementation/implementation-urlhandling.html

1 Answer 1

1

UrlHandling is passed into the MarketingCloudConfig. As such, you must implement it in native code. Examples of this can be seen in the Learning Applications: https://github.com/salesforce-marketingcloud/MarketingCloudSDK-Android/blob/master/app/src/main/java/com/salesforce/marketingcloud/learningapp/BaseLearningApplication.kt#L126

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.