0.5.0
Fixed
-
Fixed crash on
Heap.attachWebViewwhen called twice on the same web view prior to iOS 15.
Now, subsequent calls are ignored. -
Fixed small memory leak when an attached
WKWebViewis deallocated. This was caused by the
WKUserContentControllermaintaining a strong self reference when it has message handlers
attached. This change may trigger a warning message from WebKit onWKWebViewdeallocation,
which can be resolved by callingHeap.detachWebViewwhen removing the web view. -
Heap.removeHeapJsCookieis now public.
Changed
-
Heap.shared.resetIdentity()andHeap.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
.clearEventPropertiesOnNewUserto 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.attachWebViewwith the exception of the heap.js cookie. This method is optional and
intended to be used before deallocating aWKWebView.