UnityChangelog for Unity V4 SDK

 

These docs are for PubNub 4.x for Unity which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.x for Unity.

If you have questions about the PubNub for Unity SDK, please contact us at support@pubnub.com.


Modified
  • Signals

  • IncludeMeta in History and Fetch

Modified
  • Presence Timeout cannot be lower than 20

Fixed
  • PNPresenceEventResult.State property not populated in callback

Modified
  • Message Counts simplification (Breaking changes from the previous version).

Modified
  • Message Counts API

Modified
  • BREAKING CHANGE: Fixed a typo by renaming the event from SusbcribeCallback to SubscribeCallback and the EventArgs from SusbcribeEventEventArgs to SubscribeEventEventArgs

Modified
  • Presence Heartbeat call delays itself when a Subscribe call precedes it

  • User Exceptions Fix

Added
  • Heartbeats per channel

  • QueryParams in all API calls

Fixed
  • Leave callback message exception fix

Modified
  • UnityPackage reorganization

Modified
  • Travis update for UnityPackage

Modified
  • Delete Messages Fix

Modified
  • Integration tests fixes

Modified
  • Here Now Refresh

Modified
  • Cleanup

Modified
  • Logging enhancements

Modified
  • Cleanup

Modified
  • Windows Universal compatibility

Modified
  • Leave fixes

Modified
  • All new PubNub Unity SDK

Modified
  • Presence delta intervals

Modified
  • Unity UWP compatibility

Modified
  • Presence delta intervals

Fixed
  • Region check in Timetoken dictionary

Modified
  • Prefix UUID with 'pn-'

Fixed
  • Fixed user state issue for other UUID

Added
  • Changed origin to ps.pndsn.com

Added
  • Offers the ability to set a per message time to live in storage.

  • Find out which UUID sent the message (only avialable when debug symbol PUBNUB_PS_V2_RESPONSE is used).

Modified
  • Windows Store Universal 10 store compatibility

  • Changed the JSON lib to use: https://github.com/MarkerMetro/MarkerMetro.Unity.JsonFx, as it is compatible with Windows store.

  • BouncyCastle(http://www.bouncycastle.org/csharp/) is used for crypto functionality.

Added
  • Added a debug symbol PUBNUB_PS_V2_RESPONSE to enable v4 subscribe

Added
  • Fixed SetGameObject

Added
  • PubSub v2

  • Channel Groups

  • Message Filtering

  • Wildcard Subscribe

Modified
  • Code optimizations

Modified
  • A new debug symbol to reduce the usage of coroutines. Set REDUCE_PUBNUB_COROUTINES, to use the alternate logic for www coroutines used by the PubNub's SDK. When using this option it is recommended that you call TerminateCurrentSubscriberRequest when the app comes back to the foreground else an ongoing long request will wait till the timeout value to abort and reinit the request.

  • For iOS if the value of NonSubscribeTimeout and SubscribeTimeout is greater than 59 secs, the SDK will force the value to be 59 secs.

Modified
  • Refactored code.

  • JSON library: the pre-compiler directives to choose between MiniJSON and JSONFx have been moved to the class JSONSerializer.cs.

  • `Logging: In addition to setting the variables PubnubLogLevel = LoggingMethod.Level.Info and PubnubErrorLevel = PubnubErrorFilter.Level.Info you also need to add a "define symbol": ENABLE_PUBNUB_LOGGING for each of the platform you want to enable logging.

    This setting is available in the Unity Editor: File-> Build Settings -> Player Settings -> Other Settings -> Configuration -> Scripting define symbols. After you type ENABLE_PUBNUB_LOGGING in it do remember to press return with the focus still in the text box or your setting will not be saved. `

  • Default value of SSL is now true.

Added
  • Add mobile push methods.

Fixed
  • some fixes for subscribe request timeouts.

Modified
  • removes forceful garbage collection.

Fixed
  • Fix for "null" message in callback when a message contains multiple messages, one of which is of type System.Collections.Generic.Dictionary`2[System.String,System.Object].

Fixed
  • Duplicate messages on some occasions.

Fixed
  • Non subscribe callbacks were not fired when called from within a callback of an earlier request.

Fixed
  • Missed messages when adding a channel to multiplexed.

  • Sub timeout gets fired when in app goes in background and the request is not complete.

  • User State didn't change in some cases.

  • Multiple requests heartbeats were running.