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:
[x] Bug fix. Add the issue # below if applicable.
[ ] New feature. A non-breaking change which adds functionality.
[ ] Other, such as a build process or documentation change.
Notes
Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.
Description
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
Running the Unity testapp locally
Type of Change
Place an
x
the applicable box:Notes
Release Notes
section ofrelease_build_files/readme.md
.