Manage Relay Postboxes
Provides the essentials to give your users their postbox.
Creating a Relay Postbox
// currentSudo: the Sudo object which will own the created postbox
let connectionId = UUID().uuidString
let ownershipProofToken = sudoProfilesClient.getOwnershipProof(
sudo: currentSudo,
audience: "sudoplatform.relay.postbox")
var postbox: Postbox?
do {
postbox = try await relayClient.createPostbox(
withConnectionId: connectionId,
ownershipProofToken: ownershipProofToken
isEnabled: true)
} catch {
// Handle error;
// If an error occurs, the error.localizedDescription can be
// presented to the user to notify them as to what caused the error.
}
// Store the postbox. The postbox unique identifier is required to update
// postbox status and delete the postbox when required.
Updating a Relay Postbox
Deleting a Relay Postbox
Retrieving Postboxes
Last updated