An open API service indexing awesome lists of open source software.

https://github.com/userlike/userlikeiosdemo


https://github.com/userlike/userlikeiosdemo

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Userlike iOS Demo

This repository demonstrates how to integrate the Userlike Messenger into a Swift UI application.

The messenger is loaded in a WKWebview and communicates state changes to the host application with `window.webkit.messageHandlers.[..].postMessage`.

To use, insert your Widget Key in `Assets/userlike.html`.

## TODO
- demonstrate how to control the messenger with `WKWebView.evaluateJavaScript()`
- actively manage `WKWebView.websiteDataStore`
- make sure links are properly handled