Create APNS provider
Endpoint
posthttps://<REGION>.cloud.appwrite.io/v1/messaging/providers/apns
Description
Create a new Apple Push Notification service provider.
Required scopes
Authentication
setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.Parameters
Provider ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
Provider name.
APNS authentication key.
APNS authentication key ID.
APNS team ID.
APNS bundle ID.
Use APNS sandbox environment.
Set as enabled.
Provider
Provider ID.
Provider creation time in ISO 8601 format.
Provider update date in ISO 8601 format.
The name for the provider instance.
The name of the provider service.
Is provider enabled?
Type of provider.
Provider credentials.
Provider options.
import Appwrite
let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key
let messaging = Messaging(client)
let provider = try await messaging.createApnsProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", authKey: "<AUTH_KEY>", // optional authKeyId: "<AUTH_KEY_ID>", // optional teamId: "<TEAM_ID>", // optional bundleId: "<BUNDLE_ID>", // optional sandbox: false, // optional enabled: false // optional)Messaging
Create APNS provider
Endpoint
posthttps://<REGION>.cloud.appwrite.io/v1/messaging/providers/apns
Description
Create a new Apple Push Notification service provider.
Required scopes
Authentication
setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.Parameters
Provider ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
Provider name.
APNS authentication key.
APNS authentication key ID.
APNS team ID.
APNS bundle ID.
Use APNS sandbox environment.
Set as enabled.
Provider
Provider ID.
Provider creation time in ISO 8601 format.
Provider update date in ISO 8601 format.
The name for the provider instance.
The name of the provider service.
Is provider enabled?
Type of provider.
Provider credentials.
Provider options.
import Appwrite
let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key
let messaging = Messaging(client)
let provider = try await messaging.createApnsProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", authKey: "<AUTH_KEY>", // optional authKeyId: "<AUTH_KEY_ID>", // optional teamId: "<TEAM_ID>", // optional bundleId: "<BUNDLE_ID>", // optional sandbox: false, // optional enabled: false // optional)