Hi I am doing some testing with push notifications and have implemented them and have them working on Android and iOS.
The problem I face now is my first test had only one file(app.js) which contained all the code and these event listeners
CloudPush.addEventListener('callback', function(evt) { alert(evt.payload); }); CloudPush.addEventListener('trayClickLaunchedApp', function(evt) { Ti.API.info('@@## Tray Click Launched App (app was not running)'); }); CloudPush.addEventListener('trayClickFocusedApp', function(evt) { Ti.API.info('@@## Tray Click Focused App (app was already running)'); });This works fine, but since I have modified my code into a multi tab application I can't get these listeners to work. Does anyone know how I would get these to work?
I have a file called PushWindow.js in resources/ui/common/handheld which contains my code for testing the push notification api, if I include them here they don't get triggered and have also tried placing them in app.js