React-native-branch-deep-linking-attribution: is there branch.unsubscribe?

Created on 14 Dec 2016  路  1Comment  路  Source: BranchMetrics/react-native-branch-deep-linking-attribution

Hi there,

I'm using branch.subscribe for incoming links as shown in usage
and wondering if there is branch.unsubscribe? i tried it with branch.unsubscribe and it doesn't seem to work.

I need it in case when user is currently logged out and app is opened using deep link
it won't direct to the deep link page until user logs in

Thanks!

Most helpful comment

the subscribe method returns an unsubscribe function, much like redux does. i.e.

const branchUnsubscribe = branch.subscribe(listener)
// sometime later ...
branchUnsubscribe()

>All comments

the subscribe method returns an unsubscribe function, much like redux does. i.e.

const branchUnsubscribe = branch.subscribe(listener)
// sometime later ...
branchUnsubscribe()
Was this page helpful?
0 / 5 - 0 ratings