https://github.com/codenameone/intercomsupport
Integrates intercom.io into any Codename One application allowing the app to chat/track events
https://github.com/codenameone/intercomsupport
Last synced: 11 months ago
JSON representation
Integrates intercom.io into any Codename One application allowing the app to chat/track events
- Host: GitHub
- URL: https://github.com/codenameone/intercomsupport
- Owner: codenameone
- Created: 2017-02-01T21:00:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-01T21:11:43.000Z (about 9 years ago)
- Last Synced: 2025-01-28T05:41:52.265Z (about 1 year ago)
- Language: Java
- Homepage: https://www.codenameone.com/
- Size: 244 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codename One Intercom Support
[Intercom.io](http://www.intercom.io) allows you to track & support users across multiple channels. At [Codename One](https://www.codenameone.com) we use it for support and customer communication so it's fitting we would add it to our apps so we can communicate better with developers in our demos as well.
This is modeled closely to the Android API for Intercom but we also derived some inspiration from the Cordova support. Currently push with intercom still isn't tested but it is something we hope to add as we move forward.
The test app included is a bit simplistic but the basic usage is:
````java
Intercom.init("AndroidAppKey", "IosAppKey", "AppId");
if(Intercom.getInstance() != null) {
Intercom.getInstance().registerIdentifiedUser(Registration.create().withEmail(usersEmail));
}
````
You can now start sending events and opening the messenger using standard API's such as:
````java
if(Intercom.getInstance() != null) {
Intercom.getInstance().displayConversationsList();
}
````
Currently only Android & iOS are supported as Intercom doesn't support Windows. We might do JavaScript integration for other platforms as a fallback if there is a technical possibility or demand for that.