Skip to content

Conversation

@Nightsd01
Copy link
Contributor

@Nightsd01 Nightsd01 commented Apr 19, 2018

• Ensures that UNNotificationCenter setDelegate: will never get called twice, which is useful if other SDK's are swizzling the same method incorrectly in a way that invites race conditions


This change is Reviewable

• Ensures that UNNotificationCenter setDelegate: will never get called twice, which is useful if other SDK's are swizzling the same method incorrectly in a way that invites race conditions
@Nightsd01 Nightsd01 requested a review from jkasten2 April 19, 2018 19:14
• Adds a test to make sure that calling UNUserNotificationCenter +setDelegate: does not swizzle the same object twice.
@jkasten2
Copy link
Member

Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

• Adds a comment to explain what is happening in the registerAsUNNotificationCenterDelegate() method which looks a bit confusing
@Nightsd01 Nightsd01 merged commit acbfd28 into master Apr 20, 2018
@Nightsd01 Nightsd01 deleted the swizzling branch April 20, 2018 20:11
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.

3 participants