react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
subscribe callback is never triggered
Describe the bug
I'm trying to subscribe to deep links, so that they work when the app is in the background. I'm writing this into one of my high-level components:
useEffect(() => {
branch.subscribe(({ params }) => {
// Do something with the params
});
});
However, the code inside the subscribe callback never runs if I open a deep link.
Steps to reproduce
Use the snippet above to subscribe to deep links, then open a deep link with the app in the background.
Expected behavior
The app should handle the deep link correctly.
SDK Version
5.5.0
Make and Model
iOS Simulator
OS
iOS 16
Additional Information/Context
No response