This small change returns the listener created by the RNPusherPushNotifications.on() call, so that we can clean it up if we want to. This is helpful in logout - re-login flow where the listeners from a previous login keeps lingering and listening to new events.
Hi,
This small change returns the listener created by the
RNPusherPushNotifications.on()
call, so that we can clean it up if we want to. This is helpful in logout - re-login flow where the listeners from a previous login keeps lingering and listening to new events.Hoping for this to be merged to upstream. Thanks!