Added gcm_notified flag logic to gcm service.