* @internal * Does basic setup of the Iterable SDK. * @param config - The configuration object for the Iterable SDK
(config: IterableConfig = new IterableConfig())
| 193 | * @param config - The configuration object for the Iterable SDK |
| 194 | */ |
| 195 | private static setupIterable(config: IterableConfig = new IterableConfig()) { |
| 196 | if (config) { |
| 197 | Iterable.savedConfig = config; |
| 198 | |
| 199 | IterableLogger.setLoggingEnabled(config.logReactNativeSdkCalls ?? true); |
| 200 | IterableLogger.setLogLevel(config.logLevel); |
| 201 | |
| 202 | Iterable.embeddedManager = new IterableEmbeddedManager(config); |
| 203 | } |
| 204 | |
| 205 | this.setupEventHandlers(); |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Associate the current user with the passed in email parameter. |
no test coverage detected