Skip to content

Conversation

@charlotteliang
Copy link
Contributor

  • Move checkin logic from IID to Messaging (FIRMessagingAuth* FIRMessagingCheckin*)

  • Move Token logic from IID to Messaging (FIRMessagingToken*, all the token operations files)
    (The files above mostly copy over, rename and fix compiling errors and logic issues)

  • Merge MessagingCode and Utilities between IID and Messaging.

  • I have not added unit tests from IID yet to prevent this PR getting even bigger.

  • All IID code is under token/ folder.

  • FIRMessagingTokenManager serves as the central object that holds the values of token and checkin info. It is the communication between messaging and previous IID classes.

  • All the persistent storage path are kept the same to ensure IID still works with Messaging if users are still using InstanceID.

  • Kept all the communications between IID and Messaging in case users still use IID API to handle token and apns info. (APNS used to be in iid)

  • Tested with Messaging getToken and deleteToken API.

  • When token is updated from messaging side, need to add a new notification to notify IID to update its cache.

  • Tested interactions between Messaging Token API and IID Token API and FID API (this is blocked by previous task)

#no-changelog

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. 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.

…ceIDTokenInfo and FIRInstanceIDAPNSInfo class name
@charlotteliang charlotteliang requested review from maksymmalyhin and paulb777 and removed request for maksymmalyhin July 22, 2020 00:43
@charlotteliang
Copy link
Contributor Author

The previous PR (#6064) had a strange 'git rebase' conflicts problem today after I merged from master. I suspect it's something with the token branch. Will try to push to a new branch so all the changes are not lost and I will start from a new dev branch with smaller number of commits.

Create this new one and @paulb777 can you approve again. Should be no difference.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Happy to help with git branch management if you want to work through anything in the future.

@charlotteliang charlotteliang merged commit 21b4949 into chen/fm-master Jul 22, 2020
@charlotteliang charlotteliang deleted the token branch July 22, 2020 00:59
@firebase firebase locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants