Skip to content

0.5.0

Compare
Choose a tag to compare
@build-heap build-heap released this 30 Nov 23:17
· 36 commits to main since this release
74661cf

Fixed

  • Fixed crash on Heap.attachWebView when called twice on the same web view prior to iOS 15.
    Now, subsequent calls are ignored.

  • Fixed small memory leak when an attached WKWebView is deallocated. This was caused by the
    WKUserContentController maintaining a strong self reference when it has message handlers
    attached. This change may trigger a warning message from WebKit on WKWebView deallocation,
    which can be resolved by calling Heap.detachWebView when removing the web view.

  • Heap.removeHeapJsCookie is now public.

Changed

  • Heap.shared.resetIdentity() and Heap.shared.identify() no longer clear event properties by
    default when a new user is identified.

    The previous behavior is available using the option .clearEventPropertiesOnNewUser.

  • Changed uploader behavior around server errors.

Added

  • Added option .clearEventPropertiesOnNewUser to continue using existing SDK behavior where event
    properties are cleared when a new user is identified.

  • Added Heap.detachWebView. This method removes most integrations added with
    Heap.attachWebView with the exception of the heap.js cookie. This method is optional and
    intended to be used before deallocating a WKWebView.