Giter Site home page Giter Site logo

Comments (4)

marcuswestin avatar marcuswestin commented on June 17, 2024

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.

stefankendall avatar stefankendall commented on June 17, 2024

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.

marcuswestin avatar marcuswestin commented on June 17, 2024

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.

marcuswestin avatar marcuswestin commented on June 17, 2024

@stefankendall fyi, WebViewProxy is now pretty much done: https://github.com/marcuswestin/WebViewProxy

from webviewjavascriptbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.