https://github.com/userlike/userlikeiosdemo
https://github.com/userlike/userlikeiosdemo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/userlike/userlikeiosdemo
- Owner: userlike
- License: mit
- Created: 2024-05-12T21:37:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T11:40:02.000Z (about 2 years ago)
- Last Synced: 2025-02-15T09:40:32.040Z (over 1 year ago)
- Language: Swift
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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