WIP
This commit is contained in:
parent
6b724b3821
commit
e21d5b5e53
|
@ -65,16 +65,16 @@ Future<void> _initializeSystemSettings() async {
|
|||
// Configura o tratamento de erros não capturados
|
||||
FlutterError.onError = crashlyticsInstance.recordFlutterError;
|
||||
|
||||
crashlyticsInstance.checkForUnsentReports().then((unsentReports) {
|
||||
if (unsentReports) {
|
||||
crashlyticsInstance.sendUnsentReports();
|
||||
print('Existem relatórios de falhas não enviados.');
|
||||
} else {
|
||||
print('Todos os relatórios de falhas foram enviados.');
|
||||
}
|
||||
}).catchError((error) {
|
||||
print('Erro ao verificar ou enviar relatórios não enviados: $error');
|
||||
});
|
||||
// crashlyticsInstance.checkForUnsentReports().then((unsentReports) {
|
||||
// if (unsentReports) {
|
||||
// crashlyticsInstance.sendUnsentReports();
|
||||
// print('Existem relatórios de falhas não enviados.');
|
||||
// } else {
|
||||
// print('Todos os relatórios de falhas foram enviados.');
|
||||
// }
|
||||
// }).catchError((error) {
|
||||
// print('Erro ao verificar ou enviar relatórios não enviados: $error');
|
||||
// });
|
||||
}
|
||||
print('Crashlytics enabled');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue