Update push notification device token address
This commit sets up the correct server address to send device token notifications to. Testing ------- PASS Device: iPhone 13 Mini iOS: 17.5 Damus: This commit strfry-push-notify: 6c52129ab52f37f6686b1a3d1d0d8b478de9e60f Setup: - strfry-push-notify and notification device token server setup on the real damus server - APNS environment setup to development on the server (temporarily) - Developer settings turned on - Experimental push notifications support turned ON - "Send device tokens to localhost" setting turned OFF - Notification mode in notification settings set to PUSH notifications Steps: 1. Get a simulator up and running and connected to the Damus relay 2. Send a DM to the main device under test. 3. Check if push notification arrives even with Damus closed. PASS Closes: https://github.com/damus-io/damus/issues/1733 Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Reviewed-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -10,9 +10,9 @@ import Foundation
|
||||
class Constants {
|
||||
//static let EXAMPLE_DEMOS: DamusState = .empty
|
||||
static let DAMUS_APP_GROUP_IDENTIFIER: String = "group.com.damus"
|
||||
static let DEVICE_TOKEN_RECEIVER_PRODUCTION_URL: URL = URL(string: "https://notify.damus.io:8000/user-info")!
|
||||
static let DEVICE_TOKEN_RECEIVER_PRODUCTION_URL: URL = URL(string: "http://45.33.32.5:8000/user-info")!
|
||||
static let DEVICE_TOKEN_RECEIVER_TEST_URL: URL = URL(string: "http://localhost:8000/user-info")!
|
||||
static let DEVICE_TOKEN_REVOKER_PRODUCTION_URL: URL = URL(string: "https://notify.damus.io:8000/user-info/remove")!
|
||||
static let DEVICE_TOKEN_REVOKER_PRODUCTION_URL: URL = URL(string: "http://45.33.32.5:8000/user-info/remove")!
|
||||
static let DEVICE_TOKEN_REVOKER_TEST_URL: URL = URL(string: "http://localhost:8000/user-info/remove")!
|
||||
static let MAIN_APP_BUNDLE_IDENTIFIER: String = "com.jb55.damus2"
|
||||
static let NOTIFICATION_EXTENSION_BUNDLE_IDENTIFIER: String = "com.jb55.damus2.DamusNotificationService"
|
||||
|
||||
Reference in New Issue
Block a user