The first thing your app should never do is slam users with a notification permission dialog. Apple wants users to understand the value first. Here's how to fix the timing.
What Apple said
“Your app requests permission to send push notifications immediately upon launch, before the user has had an opportunity to understand the value of such notifications. Push notification permission should be requested at an appropriate point in the user journey, with a clear explanation of what notifications will be sent.”
Requesting push notification permission on first launch — before a user has even seen what your app does — is a pattern Apple explicitly discourages. It feels aggressive to users and doesn't give them context for why they'd want your notifications. The fix is straightforward: wait until a moment where notifications clearly add value, and prime the request with a custom explanation first.
While you're at it — Apple also requires these pages for every app.
Fix this rejection, then make sure you're covered on the compliance side too. Apple requires every app to link to a hosted Privacy Policy, Terms of Service, Support page, and Data Deletion page. No link means another rejection — just for a different reason.