Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 8.0.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2018 Sprint 23, 2018 Sprint 24

      Description

      • ti.foreground and ti.background events are being sent on every Activity onPause and onResume. This means every new window is classed as a new session, which is incorrect.
      • The events need to be tied to the application lifecycle and not each activity lifecycle

      TEST CASE

      const win = Ti.UI.createWindow({ backgroundColor: 'blue' }),
            btn = Ti.UI.createButton({ title: 'OPEN' });
       
      btn.addEventListener('click', () => {
          // this should not create a new session (not send ti.foreground)
          Ti.UI.createWindow({ backgroundColor: 'red' }).open();
      });
       
      win.add(btn);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Joshua Quick
              Tester:
              Samir Mohammed
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code