Enable push notifications feature for everyone and set notification mode to push
This commit hardcodes the push notification feature flag to true, in preparation for purple testflight release. It also changes the notification mode setting string, to ensure that we won't have issues with people being stuck with local notification mode. Testing ------- Steps: 1. Run app 2. Ensure push notification flag is gone from developer Settings 3. Ensure notification mode is set to push, and that the push option is available 4. Ensure push notification settings appear as "synced successfully" Conditions: - iPhone 13 mini, iOS 17.6.1, on a device that was already under testing - iPad simulator, iOS 17.5, brand new account Changelog-Added: Push notification support Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -155,8 +155,8 @@ class UserSettingsStore: ObservableObject {
|
||||
@Setting(key: "like_notification", default_value: true)
|
||||
var like_notification: Bool
|
||||
|
||||
@StringSetting(key: "notifications_mode", default_value: .local)
|
||||
var notifications_mode: NotificationsMode
|
||||
@StringSetting(key: "notification_mode", default_value: .push)
|
||||
var notification_mode: NotificationsMode
|
||||
|
||||
@Setting(key: "notification_only_from_following", default_value: false)
|
||||
var notification_only_from_following: Bool
|
||||
@@ -207,8 +207,9 @@ class UserSettingsStore: ObservableObject {
|
||||
@Setting(key: "always_show_onboarding_suggestions", default_value: false)
|
||||
var always_show_onboarding_suggestions: Bool
|
||||
|
||||
@Setting(key: "enable_experimental_push_notifications", default_value: false)
|
||||
var enable_experimental_push_notifications: Bool
|
||||
// @Setting(key: "enable_experimental_push_notifications", default_value: false)
|
||||
// This was a feature flag setting during early development, but now this is enabled for everyone.
|
||||
var enable_push_notifications: Bool = true
|
||||
|
||||
@StringSetting(key: "push_notification_environment", default_value: .production)
|
||||
var push_notification_environment: PushNotificationClient.Environment
|
||||
|
||||
Reference in New Issue
Block a user