init home widget on app init only if app init is from foreground
This commit is contained in:
parent
56bc0437fc
commit
9385b30159
1 changed files with 4 additions and 1 deletions
|
@ -210,7 +210,10 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
|
|||
LocalFileUpdateService.instance.init(preferences);
|
||||
SearchService.instance.init();
|
||||
StorageBonusService.instance.init(preferences);
|
||||
unawaited(HomeWidgetService.instance.initHomeWidget());
|
||||
if (!isBackground) {
|
||||
unawaited(HomeWidgetService.instance.initHomeWidget());
|
||||
}
|
||||
|
||||
if (Platform.isIOS) {
|
||||
// ignore: unawaited_futures
|
||||
PushService.instance.init().then((_) {
|
||||
|
|
Loading…
Add table
Reference in a new issue