Skip to content

[MOBILE-5857] Add feature flag status, status event, and waitRefresh - #143

Open
crow wants to merge 2 commits into
mainfrom
MOBILE-5857
Open

crow wants to merge 2 commits into
mainfrom
MOBILE-5857

Conversation

@crow

@crow crow commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What do these changes do?

Adds feature flag update status, a status changed event, and waitRefresh to the iOS and Android proxies.

Why are these changes necessary?

Lets wrappers gate launch decisions on fresh flag data and react when rules update later, for MOBILE-5857.

How did you verify these changes?

Android compiled against a locally published SDK build with the new public waitRefresh, and iOS built as part of the RN example app.

Anything else a reviewer should know?

Android needs the next SDK release with public FeatureFlagManager.waitRefresh (urbanairship/android-library-dev#2161), so CI stays red until the 20.12.0 pin gets bumped.

@crow
crow requested a review from a team as a code owner September 4, 2026 01:40

Task {
let updates = await Airship.featureFlagManager.featureFlagStatusUpdates.compactMap {
($0 as? FeatureFlagUpdateStatus).map(FeatureFlagStatusProxy.init)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does compactMap return? I think you can just do a guard cast in the for await below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants