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
HeapSwiftCoreandWKWebViewto expose JavaScript. UsingHeap.attachWebViewfrom 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 aHeapobject into you pages, allowing you to callHeap.trackdirectly from HTML without using JavaScript files. - It provides a bridging SDK that is consumed by other projects like HeapCapacitorBridge.