2.1.42 • Published 4 months ago

pressenger-expo-plugin v2.1.42

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Pressenger Expo Plugin

Installation

  • Install the react-native-pressenger-sdk by npm i react-native-pressenger-sdk
  • Install this plugin by npm i pressenger-expo-plugin
  • Follow the steps of the official Google documentation to setup Firebase
  • Add Google Services config file paths to the iOS config and Android config
  • Add plugin setup to app.json:
...
"plugins": [
    [
        "pressenger-expo-plugin",
        {
          "groupId": "... pressenger group id ...",
          "devTeam": "... Apple dev team id ..."
        }
    ]
]
...
  • Run npx expo prebuild (also needed if you use EAS Build)

Usage

Initialize the SDK by

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

PressengerSDK.initWithConfig((event) => {
    // in-app event handling, the in-app url will be in event.url field
});

You can ask permission to show notifications (on Android) by

PressengerSDK.requestNotificationEnabled();

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 ...');
2.1.42

4 months ago

2.1.40

4 months ago

2.1.28

1 year ago

2.1.26

1 year ago

2.1.30

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.18

2 years ago

2.1.19

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.14

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.8

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago