WebViewJavascriptBridge is an Objective-C bridge framework that enables message-based communication between Objective-C and JavaScript in UIWebView, WebView, and WKWebView contexts on iOS and macOS. In the dialog that appears, uncheck "Copy items into destination group's folder" and select "Create groups for any folders". This library relies on ARC, so if you use ARC in you project, all works fine. But if your project have no ARC support, be sure to do next steps. Speed up bridge message passing by disabling the setTimeout safety check. It is only safe to disable this safety check if you do not call any of the javascript popup box functions (alert, confirm, and prompt). If you call any of these functions from the bridged javascript code, the app will hang.
Features
- Bi-directional messaging between native Obj-C and JavaScript
- Supports UIWebView, WebView (macOS), and WKWebView
- Easy setup via CocoaPods or manual installation
- Handler registration and callback response mechanism
- Used in major apps like Facebook Messenger and Paper
- MIT-licensed and widely adopted in hybrid app development