This repository hosts an example unity game running the latest UserWise SDK release. Information on learning how to properly integrate with the SDK can be found in the documentation link below.
You can quickly install the UserWise SDK without interferring with your project's source code, via use of the UPM (Unity Package Manager).
- Within your Unity Editor; click
Window > Package Manager
- Click the "+" icon at the top-left of the window -- directly under the tab labelled "Package Manager"
- Click the "Add package from git URL"
- Type in:
https://github.com/UserWise/userwise_unity_example.git#latest
If the UPM method above does not work for your game, you can always import the unitypackage that we provide at the root of this repository.
To install the old unitypackage style, just download the archive, open your Unity project, and double-click to have Unity manage the importing of our SDK assets into your game's source.
- Added the ability to set engagement outcomes for a player.
- Added optional
complete
andtimestamp
parameters forRefreshContent
. - Added the ability to retrieve the raw JSON string for the various content types that support frameworks:
Offer
,GameEvent
,PushNotification
,RemoteConfig
, &Message
.
- Fixed an issue where some UnityWebRequest requests were not being disposed of appropriately, which could cause a memory leak.
enum EnvironmentStage
has been removed in favor of setting environment keys manually
OffersModule
,MessagesModule
,SurveysModules
,EventsModule
, &RemoteConfigsModule
now expose a publicDateTime? UpcomingStartsBefore
.- This field can be used to configure the filter used when checking if a content piece should be considered upcoming or not.
- Added the ability to fully manage a player's email address via the SDK
- Updated the default native platform proxy providing better logic for retrieving the device's Language & Timezone, when in the Unity Editor.
- Fixes an issue halting offline caches from loading properly on all platforms.
- Reintroduces a reworked Push Notifications integration and module.
- Now with no native methods and no swizzling! Use any plugin you'd like to receive messages and integrate directly with UserWise far easier.
- Introduces
Offer
frameworks, similar to those present onEvents
,Messages
, &Push Notifications
.
- Introduces a new
EnvironmentStage
enum andUserWise.INSTANCE.EnvironmentStage
setter for setting a session's expected stage.- (e.g. You can now create
EnvironmentStage.qa
andEnvironmentStage.live
builds, which connect to UserWise QA & UserWise Live, respectively. - By default, all sessions will default to
EnvironmentStage.live
.
- (e.g. You can now create
- Updated session initialization to properly send over local
timezone
information.
- Fix issue where (depending on release access path; e.g.
*.unitypackage
vslatest
vsGH Releases
) you could retrieve an improper return type error for natively defined methods- A future release will see a proper solution to accessing the release build from the minimal amount of locations we can support
- Temporarily suspends support for Push Notifications & Variables.
- Major API refactor to streamline module integrations.
- Removed requirements for any Android & iOS dependencies (all required native code is now inlined).
- Adds root-level JSON array support for
CampaignEvent#Data
,Message#AdditionalFields
, &RemoteConfig#Json
.
- Adds support for in-session segment and content refreshing.
- Released tweak the the
UserWisePostBuildProcessor.cs
script for better iOS framework embedding & signing.
- Fixed a Triggered Campaign issue causing triggering to occur event when event attribute or region metadata logic failed verification.
- Fixed survey entry bug on android
- Fixed an on-device caching issue for new players
- Fixed a bug that caused constantly running content (e.g. Scheduled without an end date) to be stopped immediately
- Updated to v2.1.1 of the Android SDK
- Fixed a bug that caused the survey screen to attempt to load (and fail) when the survey invite was declined
- Added Push Notification support for both Android & iOS
- Added Client-Side content scheduling support, for in-game session start/stopping of content
- Included the new Triggered Campaigns feature; primarily introduced as background-only logic within the SDK
- Bug fix. Session IDs were not being sent to the UserWise API
- Updated to v2.0.1 of the UserWise Android SDK; for WebView layers
- Updated to v2.0.1 of the UserWise iOS SDK; for WebView layers
- Feature parity with v2.0.1 of both SDKs
- Added EventsModule
- Added VariablesModule
- Added MessagesModule
- Updated OffersModule, bringing feature parity inline with Android & iOS
- Updated SurveysModule, bringing feature parity inline with Android & iOS
- Updated to v1.2.3 Android SDK release
- Updated platform signature
- Updated to the v1.2.2 iOS SDK release
- Improved the iOS post process building by auto-embedding the UserWise SDK
- Updated to the v1.2.1 iOS SDK
- Brings the Unity SDK inline with the Android and iOS SDKs (was lagging behind)
- Added support for assigning events and event attributes an app user in-game.
- Added new'-ish' survey invite / entry flow (released in 1.1.0 of iOS and Android / server-side sdk api)
- Added OnStart and OnStop lifecycle methods so you can now better control the flow of the UserWise SDK
- Added better survey polling performance through intervaled coroutines
- Initial Live-Ready Release