Xulo Docs

iOS SDK

Install the iOS SDK

Add the Xulo Swift package to your app and, for images and the long-press view, to its two notification extensions.

iOS SDK 0.1.4 View as Markdown

Requirements

  • Xcode 16 or later
  • iOS 15 or later
  • A physical iPhone for a real push. The simulator can call the API. It does not receive remote notifications.

Add the package

In Xcode, choose File → Add Package Dependencies and enter:

Text
https://github.com/XuloAI/xulo-ios-sdk

Use version 0.1.4, up to the next major version.

The package downloads a closed binary. It does not compile the SDK source.

Choose the targets

The package has two products.

Product Target
Xulo The app
XuloExtension Notification Service and Notification Content

A text push works with the app target alone. An image, and the long-press view, need both extensions. Rich push sets them up.

Check the version

Swift
import Xulo

print(Xulo.sdkVersion) // "0.1.4"

Next

  1. APNs setup: give Xulo your Apple key.
  2. Capabilities: Push Notifications and the App Group.
  3. Initialize: start the SDK when the app launches.