Hey,
I have a weird bug that is happening with Cloudpush on android. in debug mode, when i send a push notification to the device, the callback is fired and my breakpoints in the callback are caught and event alert messages are shown, however the same code in run mode doesn't show the alert messages and the behavior coded in the callback is not run, only the main window in the application is run but the code inside the callback is not run.
this is really frustrating and unexplainable. I am running Titanium SDK 3.4.0 and Cloudpush 3.2.1
this following is a sample code from the application
if (osname === 'android') { var CloudPush = require('ti.cloudpush'); CloudPush.retrieveDeviceToken({ success : successCb, error : errorCb }); // Process incoming push notifications CloudPush.addEventListener('callback', function(evt) { alert("callback fired"); var payload = JSON.parse(evt.payload); var newsObj = { title : payload.postTitle, link : payload.postUrl, date : payload.postDate, time : payload.postTime, pubDate : '', description : '', image : '' }; newsObj.pushNotificationNews = true; var detailView = new DetailView(newsObj, true); detailView.open(); }); }what could cause such a problem; in debug mode the detailView window opens but in run mode the callback is not fired and only the main window opens even though the push notification is received.
Thanks