Delay location and notification requests

Is there a way to delay the popups asking for permission to access location and send notifications. as it stands they both appear as soon as the user open the app on iOS, and it’s not a very good user experience. I would like to delay them until the end of the onboarding, when we’ve explained what the app does and why we need the location.

thanks

This totally depends on your code or the plugins you use, ideally the permissions should appear right before you are going to use the feature that needs that permission.

thanks - i was misunderstanding how iOS asks for permissions. there was an unnecessary location check in my app component, so now the request only occurs when needed, rather than as soon as you open the app