Skip to content

2.12.1

Compare
Choose a tag to compare
@rohandubal rohandubal released this 02 May 20:34

2.12.1

Misc. Updates

  • Make network reachability provider mockable See PR #245. Thanks @gleue! πŸŽ‰

Bug Fixes

  • Improved internal handling of subscription cancellation and disconnect.
    • With this update, the cancellation behavior for subscription is more robust in both cases - when developer issues cancel and when SDK notifies connectionError in the statusChangeHandler and resultHandler
    • As a best practice, we recommend that if you do not want to receive any more callbacks on the statusChangeHandler and resultHandler for the subscription, issue a cancel which would immediately stop all communication to the watcher.
    • Once cancel is issued, no notifications or error callbacks will be given to the watcher. If the watcher object is not reference from application code, it will internally issue a cancel and ensure that no callbacks are given.