@altcraft/react-native-sdk
v0.0.1
Published
Altcraft Platform SDK for React Native
Readme
Altcraft React Native SDK
Altcraft React Native SDK. It helps manage push subscriptions, tokens, SDK events, and sending mobile events to the Altcraft platform.
Features
- Push subscription management:
pushSubscribepushSuspendpushUnSubscribegetStatus...APIs
- Push token management:
- get current token (
getPushToken) - set/delete token, force update, provider priority list
- get current token (
- JWT support (
setJwt) - Mobile events (
mobileEvent) - SDK event stream from native to JS (
subscribeToEvents) - Push intake forwarding (
takePush) to native SDK
Requirements
- React Native: depends on your RN version and New Architecture setup (TurboModules).
- Android:
minSdkandcompileSdkdepend on your app configuration- Push provider integrated in the host app (FCM / APNS/ HMS / RuStore)
Installation
yarn add altcraft-react-native-sdk
# or
npm i altcraft-react-native-sdk