Skip to content

Commit e642a26

Browse files
committed
minor fixes in usecase
1 parent 4184992 commit e642a26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Apps/CocoaPods-FCM/src/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
3333
// Now that the Firebase and Customer.io SDK's are initialized, follow the rest of the required steps for the FCM push setup.
3434
UNUserNotificationCenter.current().delegate = self
3535

36-
MessagingPushFCM.configure { config in
36+
MessagingPushFCM.initialize { config in
3737
config.autoFetchDeviceToken = true
3838
}
3939

Apps/CocoaPods-FCM/src/View/SettingsView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct SettingsView: View {
156156
init() {
157157
self.settingsManager = CioSettingsManager()
158158
self.keyValueStorage = KeyValueStore()
159-
self.pushToken = CustomerIO.shared.registeredDeviceToken() ?? "(none)"
159+
self.pushToken = CustomerIO.shared.registeredDeviceToken ?? "(none)"
160160
self.settings = settingsManager.appSetSettings ?? CioSettings.getFromCioSdk()
161161
}
162162

0 commit comments

Comments
 (0)