Skip to content

Plugin React Native for PushLink - Android Enterprise App Management

License

Notifications You must be signed in to change notification settings

diogo-bruno/react-native-push-link

Repository files navigation



React Native PushLink SDK

npm CircleCI Status Supports Android

Docs

https://docs.pushlink.com/


Installation

  • Download dependencies
yarn add react-native-push-link

# or

npm install react-native-push-link --save

and

  • Create or Edit file .env api Key
PUSH_LINK_API_KEY=your-api-key

Prepare Project Android Native

react-native pushlink-prepare-project

Publish APK PushLink

  • Required .env [PUSH_LINK_API_KEY=your-api-key] in project root
react-native pushlink-publish-apk

Download APK PushLink

  • Required .env [PUSH_LINK_API_KEY=your-api-key] in project root
react-native pushlink-download-apk

Running Project

cd ./example
yarn start
yarn android

Example project

Example Project React Native - PushLink

Usage

...
import PushLink from 'react-native-push-link';
...

componentDidMount = () => {

  const deviceId = await PushLink.getDeviceId().catch((e) => e);

  const pushLinkStarted = await PushLink.start(PUSH_LINK_API_KEY, deviceId).catch((e) => e);

};

Open file Application: App.js


API

  • Open file ./node_modules/react-native-push-link/index.d.ts and see all possibilities of using the API

Troubleshooting

  • Use adb logcat | grep PUSHLINK to check what's going on. If you can't solve the problem by yourself, please contact the support.

Help & Support

Always feel free to drop a line to support at pushlink dot com or visit our support.

Users are always welcome to contribute with issues and pull requests