Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
52 stars 5 forks source link

Add delay to avatar update callback #463

Closed pinarol closed 1 month ago

pinarol commented 1 month ago

Continuation of #459

Description

Adding a delay to wait until the server has updated the selected avatar before updating the UI. Without the delay the cache busting remains insufficient to capture the new avatar. With less than 800 ms, we can still see the issue (see comment). Hopefully, we can remove this delay soon.

Testing Steps

Use the steps in #459

Check if the avatar in the demo app gets refreshed

wpmobilebot commented 1 month ago
Gravatar UIKit Prototype Build📲 You can test the changes from this Pull Request in Gravatar UIKit Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar UIKit Prototype Build Gravatar UIKit Prototype Build
Build Number1395
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-uikit.prototype-build
Commitfc8f657a98e7cf825dbd59bf93b378b8c6569406
App Center BuildGravatar SDK Demo - UIKit #213
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.
wpmobilebot commented 1 month ago
Gravatar SwiftUI Prototype Build📲 You can test the changes from this Pull Request in Gravatar SwiftUI Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar SwiftUI Prototype Build Gravatar SwiftUI Prototype Build
Build Number1395
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-swiftui.prototype-build
Commitfc8f657a98e7cf825dbd59bf93b378b8c6569406
App Center BuildGravatar SDK Demo - SwiftUI #213
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.