diff --git a/services/tunnelbroker/src/server/mod.rs b/services/tunnelbroker/src/server/mod.rs --- a/services/tunnelbroker/src/server/mod.rs +++ b/services/tunnelbroker/src/server/mod.rs @@ -187,7 +187,9 @@ } // Checking for an empty notif token and requesting the new one from the client - if session_item.notifyToken.is_empty() + if !isConfigParameterSet("notifications.disable").expect( + "Error while checking the `notifications.disable` config file parameter", + ) && session_item.notifyToken.is_empty() && session_item.deviceType == tunnelbroker::new_session_request::DeviceTypes::Mobile as i32 {