Skip to content
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

feat: replace apple-deprecated notification method #66

Conversation

Naturalclar
Copy link
Collaborator

Summary

Applying changes from this commit facebook/react-native@edfdafc

Replacing Apple-deprecated notification method with UNUserNotificationCenter.currentNotificationCenter

Test Plan

I will test this branch locally and apply changes to the example in #51

@Naturalclar Naturalclar merged commit fbcb2e7 into react-native-push-notification:master Mar 16, 2020
@Naturalclar Naturalclar deleted the feat/removeDeprecatedMethods branch March 16, 2020 02:41
@rborn rborn mentioned this pull request Mar 18, 2020
5 tasks
@robertying
Copy link

May I ask why added a macro to exclude mac catalyst target in this commit?

I have been using this for mac catalyst and it works (at least for local notifications).

Thanks!

@Naturalclar
Copy link
Collaborator Author

Naturalclar commented Mar 19, 2020

@robertying
Thanks for the comment! I just assumed that it wasnt working for catalyst because the code for this module in the react-native core excluded MacOS target.
Sorry if that caused any inconvenience!
I'll try setting it up for MacOS target this weekend and try to release a new version!

@robertying
Copy link

Yeah v1.0.7 works for me but for v1.1.0 even though I removed these macros, I'm still seeing build errors.
I will also look into it a bit later.

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.

None yet

2 participants