diff --git a/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift b/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift index 443a1f9347..47913134a6 100644 --- a/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift +++ b/modules/expo-background-notification-handler/ios/ExpoBackgroundNotificationHandlerModule.swift @@ -37,11 +37,6 @@ public class ExpoBackgroundNotificationHandlerModule: Module { } } - AsyncFunction("getPrefsAsync") { - let keys = Array(DEFAULTS.keys) - return SharedPrefs.shared.getValues(keys) - } - AsyncFunction("resetGenericCountAsync") { SharedPrefs.shared.setValue(BadgeType.generic.toKeyName(), 0) } diff --git a/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx b/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx index b943e24a0b..35cd506062 100644 --- a/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx +++ b/modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider.tsx @@ -46,7 +46,7 @@ export function BackgroundNotificationPreferencesProvider({ k: Key, v: BackgroundNotificationHandlerPreferences[Key], ) => { - SharedPrefs.setValueAsync(k, v) + SharedPrefs.setValue(k, v) setPreferences(prev => ({ ...prev, [k]: v,