I'm working on an IOT app that requires the user to connect on a Wi-Fi device without internet and then communicate with the gateway IP trough an REST API. I'm receiving bug reports on Samsung S21+ phones my app is only working if the user selects "always connect" instead of "connect only this time". I don't know why this is happening, and I can't find documentation anywhere explaining the reason behind this.
I was wondering if there is an flag I could check at runtime to detect if the correct option was selected by the user.