run in background properly on android
This commit is contained in:
parent
41806be9bf
commit
775c77194b
1 changed files with 3 additions and 1 deletions
|
|
@ -83,7 +83,9 @@ void main(List<String> args) async {
|
||||||
await windowManager.setMinimumSize(Size.square(500));
|
await windowManager.setMinimumSize(Size.square(500));
|
||||||
}
|
}
|
||||||
|
|
||||||
isInBackground = Platform.environment["FLUTTER_HEADLESS"] != null;
|
isInBackground =
|
||||||
|
Platform.environment["FLUTTER_HEADLESS"] != null ||
|
||||||
|
args.contains("--unifiedpush-bg");
|
||||||
|
|
||||||
LicenseRegistry.addLicense(() => .fromIterable(fontLicenses));
|
LicenseRegistry.addLicense(() => .fromIterable(fontLicenses));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue