static Future<void> setForeground(bool foreground) async { if (kIsWeb) return; if (!Platform.isAndroid) return; await _channel.invokeMethod('setForeground', {"foreground": foreground}); }