-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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 Documentation Has Step that Leads to Error #5162
Comments
Hey mikeborozdin, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
Are you using an older version of ReactNative? if you go to |
Same error here |
Afaict, these methods all require application for the first argument, and the documentation, is just wrong? i.e.
wfm |
same error |
For the latest versions of react-native, see here: react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js Lines 42 to 56 in 1dc5dca
|
I'm having the same error |
react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js Lines 42 to 56 in 1dc5dca
but why isn't this mentioned in the Release note? it is a breaking change, no? |
I have a fix for this. I'll be a submitting a PR sometime soon. |
Can I confirm what solves the problem @rollick @jihopark ? I have the following in my
UPDATE
|
@joshuagutierrez What's the resolution here? |
Sorry, this issue is still open? I got confused when you closed #5746, I read it as "5746 is closed, and it also fixes the same problem as 5162" - I see you mean that "5746 re-asks the open issue 5162" |
I think it was just an issue of docs being out of sync with the current master (when we didn't have per-version docs). As of current master and 0.24 - the documentation does not have That was the commit that changed the payloads 1dc5dca |
The documentation of PushNotificationIOS says one needs to add
to
AppDelegate.m
However, the first method, namely
results in an compilation error that says
The text was updated successfully, but these errors were encountered: