Skip to content

Commit 5bd8711

Browse files
Merge pull request #3560 from nextcloud/brand-push-server
brand-push-server
2 parents 1f10b52 + 0bdddfa commit 5bd8711

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Brand/NCBrand.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class NCBrandOptions: @unchecked Sendable {
2626
var textCopyrightNextcloudiOS: String = "Nextcloud Matheria for iOS %@ © 2025"
2727
var textCopyrightNextcloudServer: String = "Nextcloud Server %@"
2828
var loginBaseUrl: String = "https://cloud.nextcloud.com"
29-
var pushNotificationServerProxy: String = "https://push-notifications.nextcloud.com"
29+
var pushNotificationServerProxy: String = ""
3030
var linkLoginHost: String = "https://nextcloud.com/install"
3131
var linkloginPreferredProviders: String = "https://nextcloud.com/signup-ios"
3232
var webLoginAutenticationProtocol: String = "nc://" // example "abc://"
@@ -110,9 +110,14 @@ final class NCBrandOptions: @unchecked Sendable {
110110
enforce_passcode_lock = (str as NSString).boolValue
111111
}
112112
}
113-
#if DEBUG
113+
#if DEBUG
114114
pushNotificationServerProxy = "https://c0004.customerpush.nextcloud.com"
115-
#endif
115+
#else
116+
if pushNotificationServerProxy.isEmpty,
117+
brand == "Nextcloud" {
118+
pushNotificationServerProxy = "https://push-notifications.nextcloud.com"
119+
}
120+
#endif
116121
}
117122

118123
@objc func getUserAgent() -> String {

0 commit comments

Comments
 (0)