Migrating to v14.0.0

Version 14.0.0 of the Intercom iOS SDK adds support for the 5th version of the messenger.

In this version, we have deprecated a number of methods in our API. 2 new enums, Space and ContentType have been introduced.
Space can either be home, helpCenter, or messages.
ContentType can either be article, survey, carousel or helpCenterCollections.

These will replace the older methods. For instance,

[Intercom presentArticle:@"12345"];
Intercom.presentArticle("12345")

will now be

[Intercom presentContent:[IntercomContent articleWithId:@"12345"]];
Intercom.presentContent(.article(id: "12345"))

For more information and code samples, please visit our Using Intercom.

Objective-C API

Deprecated APINew API
+ (void)presentMessenger+ (void)presentIntercom
+ (void)presentHelpCenter+ (void)presentIntercom:(Space)space
+ (void)presentHelpCenterCollections:(nonnull NSArray<NSString *> *)collectionIds+ (void)presentContent:(IntercomContent *)content
+ (void)presentArticle:(nonnull NSString *)articleId+ (void)presentContent:(IntercomContent *)content
+ (void)presentCarousel:(nonnull NSString *)carouselId+ (void)presentContent:(IntercomContent *)content
+ (void)presentSurvey:(nonnull NSString *)surveyId+ (void)presentContent:(IntercomContent *)content

Swift API

Deprecated APINew API
func presentMessenger()func present()
func presentHelpCenterfunc present(_ space: Space)
func presentHelpCenterCollections(_ collectionIds: [String]>)func presentContent(_ content: Intercom.Content)
func presentArticle(_ articleId: String)func presentContent(_ content: Intercom.Content)
func presentCarousel(_ carouselId: String)func presentContent(_ content: Intercom.Content)
func presentSurvey(_ surveyId: String)func presentContent(_ content: Intercom.Content)

The Help Center Notifications have been deprecated.

Deprecated APINew API
IntercomHelpCenterWillShowNotificationIntercomWindowWillShowNotification
IntercomHelpCenterDidShowNotificationIntercomWindowDidShowNotification
IntercomHelpCenterWillHideNotificationIntercomWindowWillHideNotification
IntercomHelpCenterDidHideNotificationIntercomWindowDidHideNotification

Migrating from a version less than 13.0.0

If you're migrating from a version less than 13.0.0, please refer Migrating to v13.0.0 as well.