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
Apple has confirmed that when using push-to-start, it is best to check both `Activity<...>.pushToken` in addition
252
+
`Activity<...>.pushTokenUpdates` --- because your app may need to launch in the background and the launch time may end
253
+
up being slower than the new values come in. In those cases, your task on the update sequence may start listening after
254
+
the initial values were already provided.
255
+
*/
256
+
257
+
// Set the initial pushToken (if one exists)
258
+
iflet pushToken = activity.pushToken {
259
+
OneSignalLog.onesignalLog(.LL_VERBOSE, message:"OneSignal.LiveActivities enter with existing pushToken for: \(activityType):\(activity.attributes.onesignal.activityId):\(activity.id)")
// listen for activity update token updates so we can tell OneSignal how to update the activity
234
265
Task{
235
266
OneSignalLog.onesignalLog(.LL_VERBOSE, message:"OneSignal.LiveActivities listening for pushToUpdate on: \(activityType):\(activity.attributes.onesignal.activityId):\(activity.id)")
0 commit comments