swift-sdk icon indicating copy to clipboard operation
swift-sdk copied to clipboard

SDK tries to fetch In App Messages on `IterableAPI.initialize` even if `email`, `userId` are nil and `enableEmbeddedMessaging = false`

Open imostovyi-mwb opened this issue 1 year ago • 0 comments

Preconditions:

  • Following the documentation: https://support.iterable.com/hc/en-us/articles/23061840746900-Embedded-Messages-with-Iterable-s-iOS-SDK#step-4-configure-the-sdk;
  • config.enableEmbeddedMessaging is set to false;
  • email and userId are nil;
  • SDK v 6.5.7

Expectation: InAppMessages are not being fetched.

Result: Receiving error log RequestCreator:createGetInAppMessagesRequest(_:):240: Both email and userId are nil.

Happens on:

  • IterableAPI.initialize;
  • UIApplication.didBecomeActiveNotification.

imostovyi-mwb avatar Sep 12 '24 11:09 imostovyi-mwb