TF-439 Implement handle store device id

This commit is contained in:
dab246
2022-11-29 14:50:51 +07:00
committed by Dat H. Pham
parent 5103f5a94c
commit 21ec4bb071
10 changed files with 145 additions and 3 deletions
@@ -65,4 +65,13 @@ class HiveFCMDatasourceImpl extends FCMDatasource {
_exceptionThrower.throwException(error);
});
}
@override
Future<bool> storeDeviceId(String deviceId) {
return Future.sync(() async {
return await _firebaseCacheManager.storeDeviceId(deviceId);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}
}