add check for switch mode for push notifications