Iterable / swift-sdk

Iterable's iOS SDK. Receive and track pushes to Iterable from your iOS app.
https://iterable.com/
MIT License
86 stars 67 forks source link

[MOB-6648] update get messages to pull messages from placement #665

Closed evantk91 closed 11 months ago

evantk91 commented 11 months ago

🔹 Jira Ticket(s)

✏️ Description

This pull request updates the syncMessages function to pull messages from the placement object in the payload.

anlinguist commented 11 months ago
  1. When calling getMessages(for placementId:), we need to make placementId a non-optional Int because server is returning placementId as a number type and without a placementId passed in, the alternative method getMessages() should be called.
  2. We need to update tests.

Fixed in last commit.