Project: titanium
Issue TIMOB-20285: Android - CloudPush - callback is called but notification isn't cleared
My setup is like the following: {code}	var CloudPush = require('ti.cloudpush');	var rc = CloudPush.isGooglePlayServicesAvailable();	if(rc == CloudPush.SUCCESS){	CloudPush.retrieveDeviceToken({	success: deviceTokenSuccess,	error: function(){}	});	CloudPush.addEventListener('trayClickLaunchedApp', handler1);	CloudPush.addEventListener('trayClickFocusedApp', handler2);	CloudPush.addEventListener('callback', handler3);	} {code} tiapp.xml {code} You have $number$ unread messages {code} If I receive a notification but leave it there without clicking it. Instead I launch my app from launcher. Then the callback function is called but the notification isn't cleared. If later I click the notification, it will launch the app but no callback is called. This is confusing to users. Preferable behavior would be: Once the callback is called, the corresponding notification should be cleared and the group message number should be reset. Or, like the iOS, the callback should never be called unless users click the notification or the app is in the foreground.
Story points: 3