Comments (4)
I'm not sure wwjb is compatible with phone gap. If you're using phone gap already, why not use their messaging bridge?
-- while mobile
On Oct 6, 2012, at 5:37 PM, Stefan Kendall [email protected] wrote:
I'm trying to add a WebViewJavascriptBridge to my existing phonegap application, but when I try to add the bridge to the webview, my application never loads past the splash screen.
I have this in didFinishLaunchingWithOptions:
WebViewJavascriptBridge* javascriptBridge = [WebViewJavascriptBridge javascriptBridgeForWebView:self.viewController.webView handler:^(id data, WVJBResponseCallback callback) {
NSLog(@"Received message from javascript: %@", data);
}];
I see that the events get fired, but my app doesn't load. Is this is an issue, or is there something I'm missing that's breaking startup?—
Reply to this email directly or view it on GitHub.
from webviewjavascriptbridge.
Fair enough.
My first attempt to write an iOS plugin ended in failure, but I had some cordova settings screwed up at the time.
I'll go back to writing an iOS plugin and make things more kosher.
from webviewjavascriptbridge.
Didn't mean to sound dismissive - apologies if a did.
I'm not a huge fan of phone gap. It's abstractions are too thick and extensive. All I want it a uiwebview and a way to easily pass messages bak and forth. That's what wvjb gives you.
If you need help creating a UIWebView that fills the entire viewport and loads a local HTML file, let me know.
Also, you should check out WebViewPrpxy which I built this past week. It solves an important part of iOS webview apps that even phone gap doesn't do for you well.
Cheers!
-- while mobile
On Oct 6, 2012, at 6:03 PM, Stefan Kendall [email protected] wrote:
Fair enough.
My first attempt to write an iOS plugin ended in failure, but I had some cordova settings screwed up at the time.
I'll go back to writing an iOS plugin and make things more kosher.
—
Reply to this email directly or view it on GitHub.
from webviewjavascriptbridge.
@stefankendall fyi, WebViewProxy is now pretty much done: https://github.com/marcuswestin/WebViewProxy
from webviewjavascriptbridge.
Related Issues (20)
- this project is in maintenance? 项目不在维护了吗? HOT 1
- 提交审核被拒,因为使用了UIWebView,有办法解决吗? HOT 8
- iOS UIWebview replacement to WKWebview HOT 4
- Web view is blank after creating the bridge object HOT 1
- iOS14.6 WebViewJavascriptBridge not work but iOS14.3 works HOT 1
- Hello
- Why don't work in iPad Air (14.1) ? HOT 2
- nice
- iOS 15.4 js 交互不走decidePolicyFor 这个代理方法了 HOT 2
- Mac OSX app Packages printed in version 10.15 and above crashed in system 10.14 and below, so far the problem has not been located HOT 1
- nice
- nice
- 我已经重构了这个库,10分钟就能完成接入,也许可以帮助你. HOT 2
- 按照README 第四步拷贝的js代码可能不起作用 HOT 1
- failed assertion `Draw Errors Validation
- Mambamessage
- Installed with CocoaPods in Xcode 15 beta 6 can not build module 'WebKit' HOT 9
- I think that if you no longer maintain this library, then it is recommended that you make this warehouse archived, rather than leave it to grow grass!
- JSBridge H5调用原生的方法,频繁调用的性能优化
- iOS17.1.1 收不到回调 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webviewjavascriptbridge.