0.6.0 • Published 1 year ago
@heap/heap-webview-bridge v0.6.0
heap-webview-core
heap-webview-core is an implementation of the Heap manual track SDK for use in webviews. This package has several purposes:
- It can be imported into a project using
HeapSwiftCore
andWKWebView
to expose JavaScript. UsingHeap.attachWebView
from Swift will establish a JavaScript bridge which this package can use directly. - It is used for generating a webpack bundle that is embedded in
HeapSwiftCore
. UsingHeap.attachWebView(..., injectHeapJavaScript: true)
will inject aHeap
object into you pages, allowing you to callHeap.track
directly from HTML without using JavaScript files. - It provides a bridging SDK that is consumed by other projects like HeapCapacitorBridge.