All changes
ImprovedSwift SDKSwift SDK v0.2.0

Swift SDK 0.2.0 keeps devices registered and recovers by itself

Swift SDK 0.2.0 re-registers each iOS device once a day and registers again by itself when the server no longer knows the device.

Your iOS app's devices now stay reachable with no extra code:

  • Daily check-in. The SDK registers the device at least once every 24 hours, even when nothing changed. This keeps the push token fresh, so PushFire does not treat a device in use as expired.
  • Recovery from a deleted device. If your server removed the device or erased its subscriber, the next SDK call that gets "device not found" registers the device again and retries once. If the recovery fails, the SDK waits before it tries again.
  • Session follows the server. If PushFire moved the device to another subscriber, for example after an erase, the SDK clears the cached subscriber and emits .subscriberLoggedOut. It does not log in again by itself.
  • Clearer errors. PushFireError now carries the API's error code, such as device_not_found. New helpers: isDeviceNotFound and isSubscriberDeviceNotFound.
  • Safer logout. logout() no longer throws when the device is already detached from the subscriber.

Update the package: