Page MenuHomePhabricator

D5081.diff
No OneTemporary

D5081.diff

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<u16> {
@@ -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<u16>;
@@ -40,6 +41,7 @@
certificate_path: &str,
certificate_password: &str,
device_token: &str,
+ topic: &str,
message: &str,
sandbox: bool,
) -> Result<u16> {
@@ -47,6 +49,7 @@
certificate_path,
certificate_password,
device_token,
+ topic,
message,
sandbox,
))

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 9:17 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572469
Default Alt Text
D5081.diff (1 KB)

Event Timeline