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

Android: Android handles Ti.App events synchronously but iOS does not

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 3.1.3.GA, 3.2.0.GA

      Description

      I noticed on android that when you fire a Ti.App event, titanium first executes the handler of the event and then it goes on with the flow after the firing of the event. This makes not sense and is not in parity with iOS.

      simple example demonstration:

      Ti.App.addEventListener("test", function( e ) {
      	console.log("test event received");
      });
       
      var win = Ti.UI.createWindow({
      	backgroundColor:"white",
      	navBarHidden:true
      });
       
      Ti.App.fireEvent("test", {});
      console.log("test event fired");
      win.open();
      

      Result:

      test event received
      test event fired

      Expected result:

      test event fired
      test event received

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ktiniatros Onoma Epitheto
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Integration