Page MenuHomePhorge

D5081.1768857032.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D5081.1768857032.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
Mon, Jan 19, 9:10 PM (8 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5958150
Default Alt Text
D5081.1768857032.diff (1 KB)

Event Timeline