You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package also includes an example project. If in doubt, check the code in the Example folder.
32
33
33
34
### Integrating the clients in your dependencies / environment
34
-
For production code, just use the `.live()` static property.
35
+
For production code, just use the `.live()` static property.
35
36
36
37
❗️ IMPORTANT❗️
37
38
You must call the.`.live()` of `UserNotificationsClient` syncronously before the app delegate's `didFinishWithLaunching` returns. This makes sure the correct delegate is assigned to the `UNUserNotificationCenter.current()` and therefore the app can react to push notifications when opened from suspended state.
@@ -49,7 +50,7 @@ func application(
49
50
}
50
51
51
52
funcsetupAppEnvironment() {
52
-
let environment =AppEnvironment(remoteNotificationsClient: RemoteNotificationsClient.live(),
53
+
let environment =AppEnvironment(remoteNotificationsClient: RemoteNotificationsClient.live,
0 commit comments