Releases: pubnub/swift
10.0.1
10.0.0
October 21 2025
This version introduces breaking changes. Please visit PubNub 10.0 Migration Guide for detailed information and instructions
Added
- The
LogWriterprotocol method signature has been refined to accept aLogMessageobject representing the logged content. It now also takes aLogMetadataparameter, allowing logging decisions to be made without evaluating the message itself.
Removed
-
Logging methods such as
debug,warning, etc, are no longer public. They are now internal as part of the logging encapsulation improvements. -
The static
logandlogLogproperties have been removed from the PubNub instance. You can now attach a logger instance via the PubNub initializer instead.
Changed
- The
HereNowmethod now returns a maximum of 1,000 occupants per channel. Previously, it would return all occupants regardless of count. If you have channels with more than 1,000 occupants, you must use pagination to retrieve the complete list.
9.3.5
October 16 2025
Fixed
- Update underlying string values for
PubNub.PushService. This change updates .fcm to return "fcm" instead of "gcm", while the deprecated .gcm continues to return "gcm" for backward compatibility.
9.3.4
September 15 2025
Fixed
- Handle missing
limitandnextparameters in thelistFiles(channel:limit:next:custom:completion:)method.
9.3.3
August 07 2025
Fixed
- APM libraries crash fix: Removed
deinitmethods that were callingsession.invalidateAndCancel()fromPresenceEffectFactoryandSubscribeEffectFactoryto prevent race conditions with Application Performance Monitoring libraries. Session cleanup now happens exclusively in HTTPSession.deinit, which ensures request cancellation before invalidation. This prevents crashes from occurring inside APM libraries when they intercept network operations during session invalidation.
9.3.2
August 06 2025
Fixed
- Implement missing token parsing logic in KMP layer (internal use).
9.3.1
July 31 2025
Fixed
- Fix the issue with recursive locking introduced in 9.3.0 when disposing a SubscriptionSet.
9.3.0
July 29 2025
Added
- Add the ability to subscribe to presence channels only, without their main counterparts.
This version introduces presence-only subscription support, allowing users to subscribe to presence channels/channel groups without requiring their main channel/channel groups counterparts. Also, the unsubscribe(from:and:) method in a PubNub class has been simplified by removing the presenceOnly: parameter. If you were using presenceOnly: true, pass presence channels or channel groups explicitly as parameters instead.
9.2.3
July 29 2025
Fixed
- Fix WeakBox hash stability.
9.2.2
July 18 2025
Fixed
- Add a wrapper around the reconnecting method for KMP (internal use).