firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
278 stars 114 forks source link

Preserve Messaging token until a Listener is set #1634

Closed a-maurice closed 2 months ago

a-maurice commented 3 months ago

Description

Provide details of the change, and generalize the change in the PR title above.

Preserve the Messaging token if one is received when a Listener isn't set, and then send that token to the Listener when it is set. Normally we recommend setting the Listener with Initialize, which avoids this issue, but there are some use cases, like the Unity SDK, where there is a gap of time between Initialize and SetListener.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Running the Unity testapp locally


Type of Change

Place an x the applicable box:

Notes

github-actions[bot] commented 3 months ago

✅  Integration test succeeded!

Requested by @jonsimantov on commit 66a957029dd5f5686cfa8ba4ff0399238c7601ab Last updated: Tue Aug 20 11:26 PDT 2024 View integration test log & download artifacts