For some reason this event triggers twice on an Android device on an incoming notification.
Any ideas why? Is this a known issue?
onNotification: function(notification) {
// Handle new push notifications here:
switch( notification.event )
{
case 'message':
// some code that is executed twice
break;
}
return true;
}