The short answer
Ask for notification permission only after the player has enjoyed the game, explain what they will get, and then send few, relevant messages tied to their own game state: your build finished, your energy is full, your friend beat your score, a new event has started. Cap frequency, send at the player's usual play time and measure opt-outs and uninstalls as carefully as opens.
Permission comes first
iOS has always required permission for notifications. Android has required it since version 13, as a runtime permission the app must request. If the user declines, asking again is limited, and many never visit settings to change it. So the first request matters.
Do not ask on first launch. The player does not yet know why they would want it.
Ask at a moment of value. After the first win, when a timer starts, or when they join an event.
Use a pre-prompt. Your own short screen that says what they will receive, with a continue button that then triggers the system prompt.…