- Provided a hot fix for an issue with unregistering the user from Pusher. SDK was unregistering the user from Pusher even if
unregisterType is passed as .none in logout method. In this case SDK should not invoke the unregister from Pusher API so device can still receive push notifications. A new version of logout method is introduced with an additional parameter authType: LPAuthenticationType that will decide whether to unregister the authenticated user from Pusher or not.
func logout(authType: LPAuthenticationType,
unregisterType: LPPusherUnregisterType = .all,
completion: @escaping () -> Void,
failure: @escaping (_ errors: [Error]) -> Void)