Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
165 stars 142 forks source link

ABKContentCardsController's timestamp is not cleared when AppBoy user changes #214

Closed chuganzy closed 4 years ago

chuganzy commented 4 years ago

Report

ABKContentCardsController's timestamp is not cleared when AppBoy user changes. As the result, contentCards are cleared, but as timestamp is not cleared, it only get's newer content from the date. Assuming that its API only returns diffs from the date.

Describe your environment.

Info Value
Platform Name iOS
Platform Version any
SDK Version 3.21.1
Integration Method CocoaPods
Xcode Version Xcode 10.2.1
Repro rate 100%

What did you do?

  1. Refresh content cards as a guest user.
  2. Login with existing account which has content cards.
  3. Refresh content cards.

What did you expect to happen?

It should also clear the timestamp and get the entire content cards for new user.

What happened instead?

Only new content cards from the date are there.

Steps to reproduce

Put in "What did you do?"

Code Snippet

N/A

Project that demonstrates the issue

N/A