- data backup
- I can't test it because I'm stuck on the login screen.
This commit is contained in:
15
refilc/lib/helpers/live_activity_helper.dart
Normal file
15
refilc/lib/helpers/live_activity_helper.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:refilc/api/providers/live_card_provider.dart';
|
||||
import '../api/providers/liveactivity/platform_channel.dart';
|
||||
|
||||
|
||||
class LiveActivityHelper {
|
||||
@pragma('vm:entry-point')
|
||||
void backgroundJob() async {
|
||||
// initialize provider
|
||||
if (!LiveCardProvider.hasDayEnd) {
|
||||
await PlatformChannel.updateLiveActivity(LiveCardProvider.LAData);
|
||||
} else {
|
||||
await PlatformChannel.endLiveActivity();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user