Skip to content

Conversation

@pletoss
Copy link

@pletoss pletoss commented Feb 14, 2025

This PR addresses issue #107 by preventing a double invocation of fetchCompletionHandler in didReceiveRemoteNotification.

Currently, the handler is called twice—once by the superclass (UnityAppController) and once in BrazeKit—which can lead to crashes (notably with GoogleUtilities). The fix introduces a localCompletionHandler and uses a dispatch group to wait for all callbacks before aggregating their results and calling the original completion handler exactly once.

…tification

Use a callbackGroup to wait for all fetchCompletionHandler callbacks and aggregate result, then call original completion handler one single time
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.

1 participant