iOS SDK integration / Migrating from previous versions |
Use this guide if you have integrated v2 of the Localytics library into your app and are ready to upgrade to v3.
Architecture updates allow us to quickly introduce new features without requiring backwards-incompatible changes. The v3 SDK supports
Changes to the method signatures make the iOS and Android Localytics SDKs almost identical. We've aligned the method signatures on iOS and Android, making it easier to keep your integrations up to date. The new method signatures also make development in new languages, such as Swift, and alternative platforms, such as Titanium, simpler.
Version 3 of the Localytics iOS SDK represents a substantial architectural change as well as a simplification of the API. Most notably, the API forgoes the singleton pattern utilized in v2 and instead makes use of class-level methods. This means that
[[LocalyticsSession shared] METHOD_NAME];
now becomes
[Localytics METHOD_NAME];
LocalyticsSessionand
LocalyticsAmpSessionare now available combined under Localytics.
Profiles data now defaults to an app-level scope. Previously all Profiles data defaulted to an org-level scope.