capacitor-community / capacitor-community/intercom

Replace deprecated Intercom Android SDK functions

Open
#136 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
70
Forks
82
PR merge metrics
No merged PRs in 30d

Description

I was debugging some issues with the Intercom Messenger and noticed that your plugin is still using several **deprecated** functions from Intercom’s Android SDK.
Please update them to the recommended alternatives to prevent potential bugs and inconsistent behavior:

- `registerUnidentifiedUser`: Use `loginUnidentifiedUser` instead.
- `registerIdentifiedUser`: Use `loginIdentifiedUser` with a callback instead.
- `updateUser`: Use `updateUser` with a callback instead.
- `displayMessenger`: Use `present()` instead.
- `displayConversationsList`: Use `present(IntercomSpace.Messages)` instead.
- `displayHelpCenter`: Use `present(IntercomSpace.HelpCenter)` instead.
- `displayHelpCenterCollections`: Use `presentContent(IntercomContent.HelpCenterCollections(ids))` instead.
- `displayCarousel`: Use `presentContent(IntercomContent.Carousel(id))` instead.
- `displaySurvey`: Use `presentContent(IntercomContent.Survey(id))` instead.
- `reset`: Call `logout()` instead.
- `displayArticle`: Use `presentContent(IntercomContent.Article(id))` instead.

This information was found by reviewing `Intercom.class`, and most of these deprecations are also documented in Intercom’s [changelog](https://github.com/intercom/intercom-android/blob/1120962b865f323afbaa8e69958caa7997bcb3f2/CHANGELOG.md?plain=1#L762).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.