Android SDK integration / Migrating from previous versions |
v3 of the Localytics Android SDK represents a substantial architectural change as well as a simplification of the API. To ensure proper initialization and push message tracking, we now require the use of a custom Application class for integration. Please follow the steps below to make the appropriate adjustments.
Most notably, you no longer need to create and maintain a LocalyticsSession object. Instead, all calls to the library API run through class-level methods of the Localytics class. In addition, all methods which were previously part of LocalyticsSession and LocalyticsAmpSession are now available combined under Localytics.
v3 of the Localytics Android SDK also lays the foundation for upcoming features. 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 simplify development in new languages and alternative platforms.
Profiles data now defaults to an app-level scope. Previously all Profiles data defaulted to an org-level scope.