react-native-pressenger-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.3.35 • Public • Published

Pressenger SDK for React Native

Installation

Android

  1. Follow the steps of the official Google documentation to install Firebase Cloud Messaging into your app: https://firebase.google.com/docs/android/setup
  2. Install this package by npm install react-native-pressenger-sdk --save
  3. Add maven { url 'https://maven2.pressenger.com' } to your top-level build file (android/build.gradle) into the allprojects/repositories section.

Usage

Initialize the SDK by

import PressengerSDK from 'react-native-pressenger-sdk';

PressengerSDK.init('... your group id goeas here ...', (event) => {
    // in-app event handling, the in-app url will be in event.url field
});

If you need topic management (subscribe to/unsubscribe from topic) then you can do it easily by

PressengerSDK.subscribeToTopic('... topic name ...');
PressengerSDK.unsubscribeFromTopic('... topic name ...');

Package Sidebar

Install

npm i react-native-pressenger-sdk

Weekly Downloads

5

Version

2.3.35

License

none

Unpacked Size

44.6 kB

Total Files

34

Last publish

Collaborators

  • thebojda