RN:不要在初始打开时请求推送通知权限

RN: Don't ask for push notification permissions on initial open

我正在使用 https://github.com/wix/react-native-notifications/ 来处理我的 React Native 应用程序中的推送通知。它有效,但我不希望用户看到通知权限提示,直到我稍后明确调用它。这是加载时发生的情况:

我已经取消注释这个库中的每一行代码,但它仍然在应用程序加载时要求这样做。有什么想法吗?

我需要在 AppDelagate.m 中删除它:

[center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound)
completionHandler:^(BOOL granted, NSError *_Nullable error) {
}];