Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/lib/services/shared_preference_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,13 @@ Future<List<WalletData>> getWallets() async {

Future<bool> clearData() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
// Preserve notification permission flag since it's tied to system permissions
final notificationPermissionRequested = prefs.getBool('notification_permission_requested') ?? false;
bool cleared = await prefs.clear();
// Restore the notification permission flag after clearing
if (notificationPermissionRequested) {
await prefs.setBool('notification_permission_requested', true);
}
saveInitDone();
return cleared;
}
Expand Down