-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[PushNotificationIOS] Added badge icon number and alert action #2931
Conversation
@alvaromb Any chance you can rebase this against master? |
I don't know if this got merged, completely forgot 😆 I can update the PR or send another one. |
@alvaromb alertAction is already added in master. Do you want to rebase and add support for |
Ok, I'll try to do a rebase today. |
@vjeux would you mind taking a look at this pull request? It's been a while since the last commit was reviewed. |
I have 0 context on this but the other reviewers might |
@alvaromb updated the pull request. |
I'll try assigning this to @majak as all the iOS pull requests are assigned to Nick and this doesn't scale :) |
Sorry folks, I'm currently having a gargantuan amount of work right now, didn't have time to look at this. Do you want me to rebase anything? |
Hey Guys, I'd love to have this in here. Is there anything I can do to help, like a rebase against Master since |
Thanks Joshua! :) Enviado desde mi iPhone
|
I'd like at least one person with Obj-C knowledge to take a look but everyone seems too busy. Maybe I'll have to learn Obj-C :) This one seems simple enough for me to review. @facebook-github-bot shipit |
Please ping me if you need some info about the PR @mkonicek 😃 |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
Thanks for taking a look @mkonicek. Because this PR took so long to get merged there was a bunch of code changes to master so I ended up creating a new PR with @alvaromb's changes except based off the latest master branch: #6894. I don't know if this one or #6894 is easier for you to merge in, but they accomplish the same thing. Over to you! :) |
@@ -35,6 +35,8 @@ + (UILocalNotification *)UILocalNotification:(id)json | |||
UILocalNotification *notification = [UILocalNotification new]; | |||
notification.fireDate = [RCTConvert NSDate:details[@"fireDate"]] ?: [NSDate date]; | |||
notification.alertBody = [RCTConvert NSString:details[@"alertBody"]]; | |||
notification.alertAction = [RCTConvert NSString:details[@"alertAction"]] ?: nil; |
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.
Not a biggie, but I’m unsure what the point is of the extra ternary. Right now it reads to me like: if the result of converting is nil
return nil
instead.
@mkonicek I left some comments, hope it helps. |
Thanks for the feedback @alloy. Definitely not the best code ever, I'll update the PR. |
6f45cb1
to
a1c441f
Compare
@alvaromb updated the pull request. |
I've added @alloy suggestions (thanks!) and updated the PR. /cc @joshuapinter |
@alvaromb Beauty! I'll go close my PR. |
OK merging the updated code. @facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
@alvaromb Can you please rebase? There's a merge conflict with master, sorry about that. |
…ations Improved applicationIconBadgeNumber handling and updated docs
a1c441f
to
a5bf1ab
Compare
@alvaromb updated the pull request. |
There you go @mkonicek! Please let me know if you need anything else 😃 |
Thanks @alvaromb! @facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
84e6968
Summary: Added support for setting an optional badge icon number and alert action when using local notifications. Closes facebook#2931 Differential Revision: D3212448 Pulled By: mkonicek fb-gh-sync-id: 063efcdd259b2a43f39812f57a71e8489ab33653 fbshipit-source-id: 063efcdd259b2a43f39812f57a71e8489ab33653
Summary: Added support for setting an optional badge icon number and alert action when using local notifications. Closes facebook#2931 Differential Revision: D3212448 Pulled By: mkonicek fb-gh-sync-id: 063efcdd259b2a43f39812f57a71e8489ab33653 fbshipit-source-id: 063efcdd259b2a43f39812f57a71e8489ab33653
Summary: Added support for setting an optional badge icon number and alert action when using local notifications. Closes facebook#2931 Differential Revision: D3212448 Pulled By: mkonicek fb-gh-sync-id: 063efcdd259b2a43f39812f57a71e8489ab33653 fbshipit-source-id: 063efcdd259b2a43f39812f57a71e8489ab33653
Added support for setting an optional badge icon number and alert action when using local notifications.