По какой-то причине всплывающее окно с запросом разрешения для уведомлений pu sh отображается автоматически, когда приложение открывается в первый раз, даже если я настраиваю Pu sh Уведомление позже в приложении.
Пожалуйста, дайте мне знать, как я могу остановить автоматический запрос разрешения при запуске приложения.
Я использую собственное разрешение реакции и реагирую на родные уведомления pu sh, но я не запрашиваю разрешение у них обоих при загрузке приложения .
AppState.addEventListener('change', this.appStateDidChange)
Orientation.lockToPortrait()
Orientation.addDeviceOrientationListener(this.orientationDidChange)
this.unsubscribeAuthStateChangeListener = firebase
.auth()
.onAuthStateChanged(this.authStateDidChange)
this.unsubscribeNetInfoStatListener = NetInfo.addEventListener(
this.props.setNetStat
)
this.fetchData()
this.initBranch()
if (this.props.isLoggedIn && this.props.isFirebaseAuthenticated) {
if (this.props.hasValidCards) {
Orientation.unlockAllOrientations()
}
navigate(Routes.Main)
this.props.getCards()
}
this.updateLocationPermissionState()
//Repositioning this to after create account notification prompt
PushNotification.configure({
onRegister: token => {
LeanplumManager.setUserPushToken(token.token)
},
senderId: Config.FIREBASE_CLOUD_MESSAGING_SENDER_ID,
requestPermissions: false,
popInitialNotification: false
})
}```