Skip to content

Commit 6fb2062

Browse files
Test 38 of CI
1 parent f3337f9 commit 6fb2062

File tree

1 file changed

+3
-3
lines changed
  • examples/AlertNotification-example/ios-app/personalized-news-feed/personalized-news-feed

1 file changed

+3
-3
lines changed

examples/AlertNotification-example/ios-app/personalized-news-feed/personalized-news-feed/AppDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele
2020
Task {
2121
let testId = ProcessInfo.processInfo.environment["TEST_ID"] ?? "default-test-id";
2222

23-
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)", stepName: "didFinishLaunchingWithOptions", metadata: ["launchOptions": "\(String(describing: launchOptions))"]);
23+
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)/devices", stepName: "didFinishLaunchingWithOptions", metadata: ["launchOptions": "\(String(describing: launchOptions))"]);
2424

2525
if try await notificationCenter.requestAuthorization(options: [.alert]) {
2626
DispatchQueue.main.async {
@@ -46,7 +46,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele
4646
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
4747
let testId = ProcessInfo.processInfo.environment["TEST_ID"] ?? "default-test-id";
4848

49-
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)", stepName: "didRegisterForRemoteNotificationsWithDeviceToken")
49+
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)/devices", stepName: "didRegisterForRemoteNotificationsWithDeviceToken")
5050

5151
/**
5252
* Address is provided through the environment variable.
@@ -91,7 +91,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele
9191

9292
let testId = ProcessInfo.processInfo.environment["TEST_ID"] ?? "default-test-id";
9393

94-
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)", stepName: "registration-failure", metadata: ["error": error.localizedDescription]);
94+
reportProgressToStepsGuard(deviceRegistrationAddress: "http://localhost:8571/tests/\(testId)/devices", stepName: "registration-failure", metadata: ["error": error.localizedDescription]);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)