github urbanairship/ios-library 16.10.0-beta

latest releases: 18.9.2, 18.9.1, 18.9.0...
24 months ago

Beta release for SDK 16.10.0 that adds support for live activities. To support live activities, you must call restore once after takeOff during application(_:didFinishLaunchingWithOptions:) with all the live activity types that you might track with Airship:

  Airship.takeOff(config, launchOptions: launchOptions)

  Task {
      await Airship.channel.restoreLiveActivityTracking { restorer in
          await restorer.restore(
            forType: Activity<DeliveryAttributes>.self
          )
          await restorer.restore(
            forType: Activity<SomeOtherAttributes>.self
          )
      }
  }

Then whenever you want Airship to track an activity, call trackLiveActivity on the channel instance with the name of the activity:

  Task {
      await Airship.channel.trackLiveActivity(
          activity,
          name: "my-neat-activity"
      )
  }

You will then be able to send updates through the Airship Push API to the live activity using the name my-neat-activity.

Don't miss a new ios-library release

NewReleases is sending notifications on new releases.