Push Notifications
We highly recommend enabling Lucra's Push Notifications in your app to provide a better experience for the end user.
Prerequisites
Registering for Push Notifications
class AppDelegate: NSObject, UIApplicationDelegate {
static let lucraClient = LucraClient() // fill in the initializer with your own parameters
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
AppDelegate.lucraClient.registerForPushNotifications(deviceToken: deviceToken)
}
}Handling Push Notifications
Last updated