macOS configuration
此内容尚未提供您的语言版本。
macOS apps receive push notifications through Apple Push Notification service (APNs), the same delivery channel iOS uses. Configure the macOS platform in Pushwoosh with either a certificate-based (.p12) or a token-based (.p8) connection to APNs.
Certificate-based configuration
Anchor link toCreate the .p12 certificate
Anchor link toThe Keychain, Apple Developer Portal, and export steps match the iOS certificate flow. Follow that guide and use your macOS App ID when Apple asks you to choose one:
- Generate a certificate request file in Keychain Access.
- Create an APNs certificate in Apple Developer Portal. When you select an App ID, pick the ID for your macOS app, not the iOS one.
- Export the private key as .p12 from Keychain Access.
You will need the .p12 file and the private key password in the next section.
Configure the macOS platform in Pushwoosh
Anchor link to- In your Pushwoosh project, go to Settings → Configure Platforms.
- Click Connect next to macOS in the Desktop platforms section.

- In Configuration mode for macOS, select Certificate-based manual configuration.
- Click Next.

- On Certificate-based configuration for macOS, fill in the form:
- Certificate file (.p12): upload the .p12 file you exported from Keychain Access.
- Private key password: enter the password you set when exporting the .p12 file.
- Gateway: select Sandbox for development or Production for live apps.

- Click Configure to complete the setup.
Token-based configuration
Anchor link toYou can configure the macOS platform with token-based authentication for faster communication with APNs.
Obtain a signing key from Apple
Anchor link toCreating the APNs key is the same as for iOS. Follow Obtain an Encryption Key and Key ID from Apple in the iOS token-based guide.
You will need the Key ID and the .p8 file in the next section. You can reuse the same APNs key you already use for iOS if you have one.
Configure the macOS platform in Pushwoosh
Anchor link to- In your Pushwoosh project, go to Settings → Configure Platforms.
- Click Connect next to macOS in the Desktop platforms section.

- In Configuration mode for macOS, select Token-based configuration.
- Click Next.

- On Token-based configuration for macOS, fill in the form:
- Key ID: paste the 10-character Key ID from Apple.
- Team ID: enter your Apple Developer Team ID from the Membership section of your Apple Developer account.
- Bundle ID: enter the Bundle ID of your macOS app from Certificates, Identifiers & Profiles.
- Auth Key (.p8): upload the .p8 signing key file you downloaded from Apple.
- Gateway: select Sandbox for development or Production for live apps.

- Click Configure to complete the setup.