I am building an SMS app, using the Navigation pack from Android Jetpack to navigate between screens.
When users open my app for the first time, they land on a permissions screen where they need to grand default app permissions and some regular permissions before they can move into the main screen.
I also need to show the permissions screen when the user changes their default SMS app and then reopen my app.
I saw the Conditional Navigation section in Android Navigations docs. It suggests placing this logic in the main screen fragment onViewCreated method. But I am afraid that it will impact the startup time of my app.
Is there a more efficient way to implement this? Ideally, I would like to handle this logic in the activity.