react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

iOS: `Notifications.ios.requestPermissions()` is nonexistent

Open kazushisan opened this issue 6 years ago • 5 comments

The API mentioned in https://wix.github.io/react-native-notifications/api/ios-api#requestpermissions seems to be nonexistent.

Is the documentation outdated? If so, are there any options to show a prompt requesting permission for notifications in iOS?

kazushisan avatar Aug 28 '20 08:08 kazushisan

It is outdated. You should use Notifications.registerRemoteNotifications() as it will request permissions on iOS and refreshToken on Android.

Will fix the docs today. Thanks!

yogevbd avatar Sep 01 '20 08:09 yogevbd

Thank you!

kazushisan avatar Sep 05 '20 07:09 kazushisan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Oct 11 '20 23:10 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Dec 02 '20 14:12 stale[bot]

It still appears here: https://wix.github.io/react-native-notifications/api/ios-api#requestpermissions

benpeke avatar Dec 09 '20 21:12 benpeke