Giter Site home page Giter Site logo

Comments (5)

marcuswestin avatar marcuswestin commented on June 2, 2024

Funky. Not sure what's going on here. Did you have other outstanding requests pending at the time do you think?

-- while mobile

On Jul 24, 2012, at 11:11 PM, Leo [email protected] wrote:

sendMessage was called after onBridgeReady.
I couldn't reproduce this consistently.

it seems that _readyMessageIframe.src = customProtocol://queueHasMessage was not called correctly for some reasons.

Result:
message was pushed to sendMessageQueue
webview shouldStartLoadWithRequest was called
but the URL was about:blank instead of customProtocol://queueHasMessage
and thus _flushMessageQueueFromWebView is not triggered.


Reply to this email directly or view it on GitHub:
#13

from webviewjavascriptbridge.

l4u avatar l4u commented on June 2, 2024

Probably no other requests. tried sending message by clicking on buttons.
I just found that if I create a new iframe instead of reusing the old iframe, it works too. I will end up creating some iframes, but not as worse as my last workaround.

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on June 2, 2024

I've never seen this and use the code quite a bit. Would be curious to see both what you come up with and to hear any other info you find.

-- while mobile

On Jul 24, 2012, at 11:37 PM, Leo [email protected] wrote:

Probably no other requests.
I just found that if I create a new iframe instead of reusing the old iframe, it works too. I will end up creating some iframes, but not as worse as my last workaround.


Reply to this email directly or view it on GitHub:
#13 (comment)

from webviewjavascriptbridge.

l4u avatar l4u commented on June 2, 2024

Thanks @marcuswestin I will spend some time investigating this. Probably there's something wrong in my code but not sure where it is.

from webviewjavascriptbridge.

marcuswestin avatar marcuswestin commented on June 2, 2024

I have never seen this myself. Will close since it's been a while. Feel free to reopen if you're still having issues!

Cheers,
Marcus

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.