You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2021. It is now read-only.
Once the Truecaller listener is added using the above code, in the componentDidMount, there are no methods available to remove this event listener. There after in the entire app session until exiting, whenever the app state goes to background and returns, this callback function gets called.
I guess there should be some method like TRUECALLER.removeListener(TRUECALLER_EVENT.TrueProfileResponse) to remove this listener, so we can invoke that in componentWillUnmount or whenever the verification with truecaller is done.
TRUECALLER.on(TRUECALLER_EVENT.TrueProfileResponse, profile => { //callback executed })Once the Truecaller listener is added using the above code, in the componentDidMount, there are no methods available to remove this event listener. There after in the entire app session until exiting, whenever the app state goes to background and returns, this callback function gets called.
I guess there should be some method like
TRUECALLER.removeListener(TRUECALLER_EVENT.TrueProfileResponse)to remove this listener, so we can invoke that in componentWillUnmount or whenever the verification with truecaller is done.