canInstallApks method

Future<bool> canInstallApks()

Check if can install unknown apps

Implementation

Future<bool> canInstallApks() async {
  if (!Platform.isAndroid) return false;

  try {
    final result = await _channel.invokeMethod<bool>('canInstallApks');
    return result ?? false;
  } catch (e) {
    debugPrint('❌ Permission check error: $e');
    return false;
  }
}