Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2170

Android: regression in Ti.App.fireEvent from within WebView context on 1.5 trunk

    Details

      Description

      {html}<div><p>In testing StatusNet Mobile against the new 1.5 Android code in
      trunk, I've found that custom application events fired from
      JavaScript code running within a WebView no longer work. This is
      needed for our app to communicate between the main UI code and the
      WebView that displays our message timelines.</p>
      <p>I believe I've tracked it to commit
      7926eda7aad2fa2073aad2849f4ed890c5807e00</p>
      <p>This commit removes AppModule.fireEvent(), which used to
      override the default KrollProxy event handler function with a call
      to fireAppEvent() on the current app retrieved from the current
      context. I believe that breaks the code in
      TiWebViewBinding.AppBinding.fireEvent(), which calls fireEvent()
      directly on a private AppModule instance.</p>
      <p>With the AppModule.fireEvent() hack removed, it looks like
      that'll just fire events on the individual instance and not call
      the global application.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              mculpepper Marshall Culpepper
              Reporter:
              brionvibber Brion Vibber
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1918
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration