Hi! I am trying to make it so that my app doesn't ask for permissions on load. Unfortunatley, I get the Permissions Alert box on initial install immediatley after opening the app.
When the app isMounted for the first time I run this snippet of code:
if (iOS) {
PushNotification.appStart()
PushNotification.configure({
onRegister: onPushRegistered,
onNotification: (notification) => {
if (notification.foreground) onNotificationReceivedForeground(notification)
else onNotificationReceivedBackground(notification)
if (notification.userInteraction) onNotificationOpened(notification, initialize)
notification.finish(PushNotificationIOS.FetchResult.NoData)
},
// Manually ask for permissions on iOS
requestPermissions: false,
})
}
I then, later on, after logging in, ask for permissions in the componentDidMount of the first screen rendered after logging in.
Hi! I am trying to make it so that my app doesn't ask for permissions on load. Unfortunatley, I get the Permissions Alert box on initial install immediatley after opening the app.
When the app
isMounted
for the first time I run this snippet of code:I then, later on, after logging in, ask for permissions in the
componentDidMount
of the first screen rendered after logging in.Is there something that I am obviously missing?