OAuth2 Refresh Tokens

Can anyone offer any advice on an reliable way to work with refresh tokens in appgyver.

My initial plan was to trigger a repeating flow on app launch that checks if the token has expired, but if the user switches between apps instead of closing, the repeating flow doesn’t continue when they switch back to the app. I know that background tasks aren’t possible so is there a way I can trigger this flow to start again when the app is brought to the front of the users device again?