shouldPreflightIncomingPermissions static method

bool shouldPreflightIncomingPermissions({
  1. required bool isAndroid,
  2. required bool isIOS,
  3. bool isOhos = false,
  4. required bool isDesktopRuntime,
  5. required bool isAppInForeground,
})

Implementation

static bool shouldPreflightIncomingPermissions({
  required bool isAndroid,
  required bool isIOS,
  bool isOhos = false,
  required bool isDesktopRuntime,
  required bool isAppInForeground,
}) {
  return isDesktopRuntime ||
      isIOS ||
      (isAndroid && isAppInForeground) ||
      (isOhos && isAppInForeground);
}