Skip to content

Commit

Permalink
Alterar modo de execução do serviço para foreground e remover impress…
Browse files Browse the repository at this point in the history
…ão de dados no evento de produto disponível
  • Loading branch information
Polabiel committed Sep 16, 2024
1 parent c75cd11 commit 3842f55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/api/services/socket_client_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Future<void> initializeService() async {
androidConfiguration: AndroidConfiguration(
autoStart: true,
onStart: onStart,
isForegroundMode: false,
isForegroundMode: true,
autoStartOnBoot: true,
),
);
Expand Down Expand Up @@ -73,8 +73,6 @@ void onStart(ServiceInstance service) async {
});

socket.on('productAvailable', (data) async {
print(data);

final product = await ProductRepository().getbyId(data['productId']);
final pharmacy =
await PharmacyRepository().getPharmacyById(data['pharmacyId']);
Expand Down

0 comments on commit 3842f55

Please sign in to comment.