     // MARK: Constants
     
     /// Notification sent when the sync has started.
-    @objc public static let SyncDidStartNotification = "AlgoliaSearch.MirroredIndex.SyncDidStartNotification"
+    @objc public static let SyncDidStartNotification = Notification.Name("AlgoliaSearch.MirroredIndex.SyncDidStartNotification")
     
     /// Notification sent when the sync has finished.
-    @objc public static let SyncDidFinishNotification = "AlgoliaSearch.MirroredIndex.SyncDidFinishNotification"
+    @objc public static let SyncDidFinishNotification = Notification.Name("AlgoliaSearch.MirroredIndex.SyncDidFinishNotification")
     
     /// Notification user info key used to pass the error, when an error occurred during the sync.
     @objc public static let SyncErrorKey = "AlgoliaSearch.MirroredIndex.SyncErrorKey"

            if self.syncError != nil {
                userInfo = [MirroredIndex.SyncErrorKey: self.syncError!]
            }
            NotificationCenter.default.post(name: Notification.Name(rawValue: MirroredIndex.SyncDidFinishNotification), object: self, userInfo: userInfo)
        }
    }
    


        // Notify observers.
        DispatchQueue.main.async {
            NotificationCenter.default.post(name: MirroredIndex.SyncDidStartNotification, object: self)
        }

        // Create temporary directory.
