0.5.0
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 onWKWebView
deallocation,
which can be resolved by callingHeap.detachWebView
when removing the web view. -
Heap.removeHeapJsCookie
is 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
.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 aWKWebView
.