Last modified January 23, 2018 by Shelly Wolfe

Unity SDK 5.0 Upgrade Guide

With the release of Swrve’s Unity SDK version 5.0, we have made major changes to the APIs to ensure internal consistency and improve SDK integration. This guide outlines the APIs that we have changed or deprecated.

Removed Summary
Removed the non-script SDK initializationĀ AppId, ApiKey, Config, and InitialiseOnStart from SwrveComponent.cs You must now call the Init method from the SDK in your own initialization script.
Deprecated method SwrveSDK:IsMessageDispaying Use IsMessageDisplaying instead.
Deprecated method SwrveBuildComponent:CorrectApplicationId Use AndroidPreBuild instead.
Deprecated methodsĀ IsAssetInCache and GetAssetsOnDisk from SwrveSDK
Combined To
Push configuration fields:

GCMPushNotificationTitle
GCMPushNotificationIconId
GCMPushNotificationMaterialIconId
GCMPushNotificationLargeIconId
GCMPushNotificationAccentColor
ADMPushNotificationTitle
ADMPushNotificationIconId
ADMPushNotificationMaterialIconId
ADMPushNotificationLargeIconId
ADMPushNotificationAccentColor

AndroidPushNotificationTitle
AndroidPushNotificationIconId
AndroidPushNotificationMaterialIconId
AndroidPushNotificationLargeIconId
AndroidPushNotificationAccentColor
Renamed To
Configuration field TalkEnabled MessagingEnabled
ABTestDetails SwrveABTestDetails
pushCategories PushCategories
notificationCategories NotificationCategories