openSystemSettings method
Opens the system settings page for this app.
Useful when permissions have been denied and user needs to manually enable them in Settings.
Implementation
Future<void> openSystemSettings() async {
try {
// Use Firebase Messaging's method to open settings
await FirebaseMessaging.instance.requestPermission();
logi('Opened system settings');
} catch (e, stackTrace) {
loge(e, 'Error opening system settings', stackTrace);
_onError?.call('Error opening system settings: $e', stackTrace);
}
}