mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 21:19:37 +00:00
save
This commit is contained in:
parent
9b96bde7f2
commit
00c1f450c5
1 changed files with 8 additions and 0 deletions
|
@ -394,6 +394,14 @@ Future<void> initializeService(FlutterBackgroundService bgService) async {
|
|||
),
|
||||
);
|
||||
|
||||
try {
|
||||
bool isServiceRunning = await bgService.isRunning();
|
||||
if (isServiceRunning) {
|
||||
print("Service is ALREADY running!");
|
||||
return;
|
||||
}
|
||||
} catch (_) {}
|
||||
|
||||
await bgService.configure(
|
||||
androidConfiguration: AndroidConfiguration(
|
||||
onStart: onStart,
|
||||
|
|
Loading…
Reference in a new issue