@appier/react-native-sdk
v2.3.1
Published
AIQUA react native sdk
Readme
Appier SDK for React Native
IMPORTANT
Please DO NOT use Release Candidate Version (ex: 1.6.1-rc1) in your production app.
Getting Started
Please follow our official instructions.
SDK Logging
Use Appier.setLogLevel to set the minimum severity of Appier SDK logs:
import { Appier, LogLevel } from '@appier/react-native-sdk';
Appier.setLogLevel(LogLevel.WARN);Available levels are VERBOSE, DEBUG, INFO, WARN, ERROR, and NONE.
NONE disables all regular SDK logs, including errors. Call this method before
Appier.configure when you want to override the native default.
When you never call it, the level falls back to a native default that differs per platform:
- Android follows the build type:
debuglogs atVERBOSE,releaseis silent. - iOS cannot read the host app's
DEBUGflag, because the SDK ships as a precompiled xcframework. It resolves the default from the app's distribution channel at runtime instead. App Store builds are silent; other channels are not guaranteed to be.
Do not rely on the default to keep production quiet on iOS: a Release build
installed outside the App Store may still log. Call
Appier.setLogLevel(LogLevel.NONE) explicitly when silence matters.
Two things this API does not cover:
- Logs emitted before the React Native bridge starts use the native default, since no JS has run yet.
- App extensions (for example a Notification Service Extension) run in a separate process. Calling this from JS does not change the level inside an extension; it has to be set there in native code.
