Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix areNotificationsAllowed retrieval on Android #244

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Fix areNotificationsAllowed retrieval on Android #244

merged 2 commits into from
Jan 8, 2025

Conversation

crow
Copy link
Contributor

@crow crow commented Jan 5, 2025

What do these changes do?

Fixes the push status method by using resolveDeferred instead of resolveResult so that the coroutine can complete and the serializable status can be sent back.

Also removes a duplicate implementation for feature flags trackInteraction method.

Why are these changes necessary?

The push status method isn't functioning as it should. The original implementation was returning a coroutine directly through the platform channel which isn't serializable.

How did you verify these changes?

Isolated the issue and reproduced the exception, then making the fix and testing the retrieval flow on launch:
https://gist.github.com/crow/6bdebcb6f04155ca2d3978c9e891db31

@crow crow requested a review from a team as a code owner January 5, 2025 17:58
@crow crow merged commit 28e7034 into main Jan 8, 2025
3 checks passed
@crow crow deleted the MOBILE-4862 branch January 8, 2025 01:39
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