-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove instanceID dependency from Messaging #6064
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
Conversation
…ceIDTokenInfo and FIRInstanceIDAPNSInfo class name
…ry layer of complexity
* Fix unguarded multithreaded access * Update changelog * fix typo in doc comments * fix nullability build error * Serialize via FIRAuthGlobalWorkQueue * remove unused code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments. Will continue review later ...
| // Notify InstanceID that APNS Token has been set. | ||
| NSDictionary *userInfo = @{kFIRMessagingAPNSTokenType : @(type)}; | ||
| // TODO(chliang) This is sent to InstanceID in case users are still using the deprecated SDK. | ||
| // Should be safe to remove once InstanceID is removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't users be using InstanceID long after we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No if we remove it completely from firebase-ios-sdk. if they use previous version of IID it's probably fine as messaging still kept those communications.
| completion:^(NSString *_Nullable FCMToken, NSError *_Nullable error) { | ||
| if (error) { | ||
| FIRMessagingLoggerError(kFIRMessagingMessageCodeMessaging012, | ||
| @"The unsubscription operation failed due to " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/unsubscription/unsubscribe/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have to adjust integration test with it as well. The same as the subscription message. I can do it in a separate PR so we can merge in g3 to fix integration test as this PR might not be checked in to master for a while.
* Fix potential strlen crash on NULL betaToken * Add CHANGELOG * restart CI
The token branch had a strange 'git rebase' conflicts problem today after I merged from master. Will try to push to a new branch (#6103) so all the changes are not lost and I will start from a new dev branch with smaller number of commits.
Please ignore this one.