2.1.24 • Published 3 months ago
pressenger-expo-plugin v2.1.24
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.24
3 months ago
2.1.23
3 months ago
2.1.22
6 months ago
2.1.21
11 months ago
2.1.20
12 months ago
2.1.18
1 year ago
2.1.19
12 months ago
2.1.17
1 year ago
2.1.16
1 year ago
2.1.14
1 year ago
2.1.12
1 year ago
2.1.11
1 year ago
2.1.8
1 year ago
2.1.6
1 year ago
2.1.5
1 year ago
2.1.4
1 year ago
2.1.3
1 year ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.0.0
1 year ago