openAppSettings method
Opens the application settings screen in the operating system.
Implementation
@override
Future<bool> openAppSettings() async {
if (Platform.isIOS) {
return false; // no USSD permission settings to open on iOS
}
try {
final bool? opened = await methodChannel.invokeMethod('openAppSettings');
return opened ?? false;
} on PlatformException catch (e) {
debugPrint('Error opening app settings: ${e.message}');
return false;
}
}