Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Bug? Android - window.close event couldn't be caught in other windows

Is this a bug?
I create a window, register a close-event listener and show the window. At iPhone the event gets cought (after closing the new window) and the message get's displayed. At Android there is nothing but silence…

var addNoteWindow = Titanium.UI.createWindow({
    url : 'addNoteWindow.js'

addNoteWindow.addEventListener('close', function(e) {
    Ti.API.info('addNoteWindow closed');

— asked April 8th 2010 by Jonas Panten
  • android
  • event
  • window

3 Answers

  • Hi,

    Any updates on this? I am experiencing this problem too!



    — answered October 25th 2011 by Marc Wickens
    1 Comment
    • So do I…. =/
      I can't believe there is a 2 years old bug!!

      — commented July 1st 2012 by José Júnior
  • I've tested that - it works, but it won't help me. I need to know of the closing window in the context where it got created.

    — answered April 8th 2010 by Jonas Panten
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.