Linking.openSettings();
这将打开您的应用程序设置,其中应该也有“通知”设置。
Linking.openURL('App-Prefs:NOTIFICATIONS_ID&path=<bundle_id>')
适用于我。iOS 14.7.1
Linking.openURL('App-Prefs:NOTIFICATIONS_ID')
选项的完整列表: https://gist.github.com/tzmartin/b7019c22fc3152a0b2fe
不知道为什么不需要root=
...
React Native 0.72.5
iOS 16.6.1
Linking.openURL('App-Prefs:NOTIFICATIONS_ID&path=<bundle_id>')