-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure for Android #268
Comments
react-native-intercomReact Native wrapper for Intercom.io. Based off of intercom-cordova Installation Guide
UsageImport or Require the moduleimport Intercom from 'react-native-intercom'; or var Intercom = require('react-native-intercom'); Log an eventIntercom.logEvent('viewed_screen', { extra: 'metadata' }); Register a Logged In userIntercom.registerIdentifiedUser({ userId: 'bob' }); Register Unidentified userIntercom.registerUnidentifiedUser(); Register a Logged In user and post extra metadataIntercom.registerIdentifiedUser({ userId: 'bob' })
Intercom.updateUser({
// Pre-defined user attributes
email: '[email protected]',
user_id: 'user_id',
name: 'your name',
phone: '010-1234-5678',
language_override: 'language_override',
signed_up_at: 1004,
unsubscribed_from_emails: true,
companies: [{
company_id: 'your company id',
name: 'your company name'
}],
custom_attributes: {
my_custom_attribute: 123
},
}); Set User Hash for Identity Validation (optional)Intercom.setUserHash(hash_received_from_backend) Sign OutIntercom.logout() Show Message ComposerIntercom.displayMessageComposer(); Show Message Composer with an Initial MessageIntercom.displayMessageComposerWithInitialMessage('Initial Message'); Set Bottom PaddingIntercom.setBottomPadding(64); Listen for Unread Conversation NotificationscomponentDidMount() {
Intercom.addEventListener(Intercom.Notifications.UNREAD_COUNT, this._onUnreadChange)
}
componentWillUnmount() {
Intercom.removeEventListener(Intercom.Notifications.UNREAD_COUNT, this._onUnreadChange);
}
_onUnreadChange = ({ count }) => {
//...
} Other Notifications // The window was hidden
Intercom.Notifications.WINDOW_DID_HIDE
// The window was shown
Intercom.Notifications.WINDOW_DID_SHOW Send FCM token directly to Intercom for push notifications (Android only)
|
Thanks. Another question. I'd like to Send an FCM token directly to Intercom for push notifications. Any ideas? |
Nope |
gee, thanks for nothing then. |
Wow that's toxic "help" |
@cbrwizard this is a joke in case you missed it: https://twitter.com/klamping/status/1095776458520383489 |
@browniefed feel free to delete this issue |
Ha, I'll leave it. The giant troll face above is pretty good indicator we were joking. |
@browniefed After following all the steps, I am getting following error : Intercom: Api call failed: {"type":"error.list","request_id":"000inqj90bj3mpbrov80","errors":[{"code":"not_found","message":"User Not Found"}]} any help? |
I'd like to configure this to run in Android. Please advise how I'd go about doing this.
The text was updated successfully, but these errors were encountered: