Skip to main content
iOS push setup has two parts: configure APNs for your app, then register the APNs device token with the social.plus iOS SDK after the user is signed in.
Push notifications require an Apple Developer account, the Push Notifications capability, and valid APNs credentials uploaded in the social.plus Console.

SDK Surface

Parameters

1. Configure APNs

In Apple Developer Console:
  1. Open Certificates, Identifiers & Profiles.
  2. Select your app’s Bundle ID.
  3. Enable Push Notifications.
  4. Create the APNs certificate or auth key your release process uses.
In Xcode:
  1. Select your app target.
  2. Open Signing & Capabilities.
  3. Add Push Notifications.
  4. Add background remote-notification mode only if your app needs background notification handling.
In the social.plus Console, open Settings > Push Notifications and upload the iOS APNs credential for the same Bundle ID.

2. Request System Registration

Ask the user for notification permission at a product moment that makes sense, then ask iOS to register the app for remote notifications.

3. Register the APNs Token

When iOS calls your app delegate with the device token, convert the token data to a hex string and pass it to the SDK.
registerPushNotification(withDeviceToken:) is available for signed-in users. The SDK throws for guest users.

4. Unregister on Sign-Out

Call unregister when the current app installation should stop receiving push notifications for the signed-in social.plus user.

Setup Checklist

  • Push Notifications capability is enabled for the app target.
  • The APNs credential for the app Bundle ID is uploaded in the social.plus Console.
  • The app calls UIApplication.shared.registerForRemoteNotifications() after permission is granted.
  • The APNs device token is passed to client.registerPushNotification(withDeviceToken:).
  • The app calls client.unregisterPushNotification() on sign-out when push should stop for that user.