Skip to content

Commit

Permalink
Revert apns (#221)
Browse files Browse the repository at this point in the history
* revert changes

* bumped cargo version
  • Loading branch information
lassemand authored Sep 16, 2024
1 parent 6190c4c commit f1c87e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 52 deletions.
2 changes: 1 addition & 1 deletion notification-server/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion notification-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Concordium AG [email protected]"]
edition = "2021"
name = "notification-server"
version = "0.3.0"
version = "0.3.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
50 changes: 0 additions & 50 deletions notification-server/src/google_cloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,6 @@ where
payload["message"] = json!({
"token": device_token,
"data": entity_data,
"apns": {
"headers": {
"apns-push-type": "background",
},
"payload": {
"aps": {
"content-available": 1
}
}
}
});
let operation = || async {
let response = self
Expand Down Expand Up @@ -343,16 +333,6 @@ mod tests {
"amount": "100",
"type": "ccd-tx",
"reference": "3d1c2f4fb9a0eb468bfe39e75c59897c1a375082a6440f4a5da77102182ba055",
},
"apns": {
"headers": {
"apns-push-type": "background",
},
"payload": {
"aps": {
"content-available": 1
}
}
}
}
});
Expand Down Expand Up @@ -408,16 +388,6 @@ mod tests {
"contract_address": "{\"index\":3,\"subindex\":0}",
"contract_name": "contract",
"reference": "6a6d250ecefb518253db4c0d7759b2f4ff2862217ed2c8343879a77e0c2c97a2",
},
"apns": {
"headers": {
"apns-push-type": "background",
},
"payload": {
"aps": {
"content-available": 1
}
}
}
}
});
Expand Down Expand Up @@ -478,16 +448,6 @@ mod tests {
"token_id": "ffffff",
"token_metadata": "{\"url\":\"https://example.com\",\"hash\":null}",
"reference": "494d7848e389d44a2c2fe81eeee6dc427ce33ab1d0c92cba23be321d495be110",
},
"apns": {
"headers": {
"apns-push-type": "background",
},
"payload": {
"aps": {
"content-available": 1
}
}
}
}
});
Expand Down Expand Up @@ -547,16 +507,6 @@ mod tests {
"token_id": "ffffff",
"token_metadata": "{\"url\":\"https://example.com\",\"hash\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"}",
"reference": "8a3a09bffa6ead269f79be4192fcb7773cc4e10a2e90c0dec3eb9ca5200c06bc"
},
"apns": {
"headers": {
"apns-push-type": "background",
},
"payload": {
"aps": {
"content-available": 1
}
}
}
}
});
Expand Down

0 comments on commit f1c87e6

Please sign in to comment.