Los SDK de dispositivos Atlas están obsoletos. Consulte deprecation page for details.
Puede configurar un controlador de errores para detectar y responder a cualquier error que se produzca en el proceso de sincronización. Para definir un controlador de errores, pase un ErrorHandler al método de construcción SyncConfiguration.Builder.errorHandler():
SyncConfiguration config = new SyncConfiguration.Builder(user, partition) .errorHandler((session, error) -> { // do some error handling }).build();
val user = app.currentUser() val config = SyncConfiguration.Builder(user, partition) .errorHandler { session, error -> // do some error handling } .build()
Tip
For a list of common Device Sync errors and how to handle them, refer to Sync Errors in the App Services Device Sync documentation.