Migrating from Zendesk SDK version 1.x.x to 2.x.x
Zendesk SDK version 2.x.x and above has been upgraded to provide greater flexibility in selecting capabilities included within the product during SDK integration. Several new features have been introduced to enhance customer engagement.
Due to these updates, migration is required for any integrations using SDK versions below 2.0.0.
SDK initialization has been moved from the Messaging
module to the Zendesk
module. See Initialize the SDK for more details.
The initialization snippet now accepts a factory implementation of messaging, and errors are returned as a Throwable
object instead of a ZendeskError
object.
The following Messaging
functions have also been migrated to Zendesk
.
Old | New |
---|---|
Messaging.initialize(...) | Zendesk.initialize(...) |
Messaging.instance().showMessaging() | Zendesk.instance.messaging.showMessaging(...) |
Auto migration
Automatic migration of the initialization snippet to the latest version may be possible using suggestions provided by Android Studio.
Note: The Messaging functions have been deprecated in the latest version and will be removed in a future version on Android.