Push notifications¶
Before you begin¶
- You will need to Integrate the SohaGame SDK for iOS into your game.
- Make sure you enable Push Notifications in Signing & Capabilities.
Register for remote notifications¶
Either at startup, or at the desired point in your application flow, register your app for remote notifications.
The SDK provides a wrapping method that simplifies integration. Simply call the following method:
By calling this method, the wrapped code will be executed, and any necessary integration steps will be handled internally. This method will take care of registering for remote push notifications and handling the notification center's delegateAccess the registration token¶
Implement the application(_:didRegisterForRemoteNotificationsWithDeviceToken:)
method to retrieve the APNs token, and then call SohaSDK registerDeviceToken: