项目作者: mateioprea

项目描述 :
React Native Intercom Module
高级语言: Objective-C
项目地址: git://github.com/mateioprea/react-native-intercom.git
创建时间: 2020-09-22T13:49:03Z
项目社区:https://github.com/mateioprea/react-native-intercom

开源协议:MIT License

下载



React Native Intercom Native


NPM downloads
NPM latest version

Intercom implementation for react native

Installation

Automatic install

  1. npm install react-native-intercom-native
  1. npx intercom-link

If you don’t want Intercom Push Notifications, you should run npx intercom along with the --disable-notification-link parameter.

Manual Installation

  1. npm install react-native-intercom-native

You should be set up!

Usage

  1. import Intercom from "react-native-intercom-native";
  2. Intercom.setApiKey(
  3. Platform.OS === 'android'
  4. ? 'your_intercom_android_api_key'
  5. : 'your_intercom_ios_api_key',
  6. 'your_app_id'
  7. );
  8. //TODO

Documentation

Check the available APIs.

Push Notifications

For configuring push notifications you should follow these steps:

iOS

On iOS you should only follow steps 1, 2, 3 and 4 from Intercom documentation that’s available here.

This plugin already does the extra steps that are necessary to handle push notifications, so you should be good to go.

Android

On android you should follow steps 1, 3 and 4 (yes, without step 2) from Intercom documentation that’s available here.

After you generated the google-services.json file just place it in ‘your_react_native_project_root/android/app/‘ folder. This is it. You’re done.

Hooks

//TODO

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT