79642813

Date: 2025-05-28 18:39:25
Score: 1
Natty:
Report link

Be aware that prompting a user with a native API in an infinite loop like this can cause app store and google play store rejection. You are requesting the user to setup / use a specific form of authentication, you must allow them to refuse that request - and both stores expect your app to remain usable despite the users decision. Some native APIs will just not show a message and fail automatically if you call them too many times. In your code that could cause a stack buffer overflow and your app could crash. But it depends on the API, others will just keep prompting, inwhich case your app will be rejected if it's reviewed thoroughly. Last I checked the max number of prompts allowed for permissions is 2. So your code is not usable either way, and you should not use it.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ibrust