openSystemSettings method
- @Deprecated('Use openNotificationSettings() instead for better web handling')
Opens the system settings page for this app.
Useful when permissions have been denied and user needs to manually enable them in Settings.
Implementation
@Deprecated('Use openNotificationSettings() instead for better web handling')
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);
}
}