diff --git a/services/tunnelbroker/rust-notifications/src/apns.rs b/services/tunnelbroker/rust-notifications/src/apns.rs --- a/services/tunnelbroker/rust-notifications/src/apns.rs +++ b/services/tunnelbroker/rust-notifications/src/apns.rs @@ -9,6 +9,7 @@ certificate_path: &str, certificate_password: &str, device_token: &str, + topic: &str, message: &str, sandbox: bool, ) -> Result { @@ -21,6 +22,7 @@ let client = Client::certificate(&mut certificate, certificate_password, endpoint)?; let options = NotificationOptions { + apns_topic: Some(topic), ..Default::default() }; let builder = PlainNotificationBuilder::new(message); diff --git a/services/tunnelbroker/rust-notifications/src/lib.rs b/services/tunnelbroker/rust-notifications/src/lib.rs --- a/services/tunnelbroker/rust-notifications/src/lib.rs +++ b/services/tunnelbroker/rust-notifications/src/lib.rs @@ -14,6 +14,7 @@ certificate_path: &str, certificate_password: &str, device_token: &str, + topic: &str, message: &str, sandbox: bool, ) -> Result; @@ -40,6 +41,7 @@ certificate_path: &str, certificate_password: &str, device_token: &str, + topic: &str, message: &str, sandbox: bool, ) -> Result { @@ -47,6 +49,7 @@ certificate_path, certificate_password, device_token, + topic, message, sandbox, ))