Hi All
Has anyone come up with a clever way to overcome WIFI_SLEEP_POLICY_NEVER (this constant was deprecated in API level 30. This is no longer used by the platform.
https://developer.android.com/reference/android/provider/Settings.Global#WIFI_SLEEP_POLICY_NEVER). We have a requirement to have an always on connection to a server app, it's used a server socket, RAW TCP. Under Android 12+ the wifi connection seems to be put to sleep. The app will re-establish the connection, but the frequency is random when the phone sleeps the WIFI.
We have also noticed that other apps (not ours) are show delays receiving notifications, one be a Door Bell app in our office.
Views and opinion's appreciated.
Regards
John.
Has anyone come up with a clever way to overcome WIFI_SLEEP_POLICY_NEVER (this constant was deprecated in API level 30. This is no longer used by the platform.
https://developer.android.com/reference/android/provider/Settings.Global#WIFI_SLEEP_POLICY_NEVER). We have a requirement to have an always on connection to a server app, it's used a server socket, RAW TCP. Under Android 12+ the wifi connection seems to be put to sleep. The app will re-establish the connection, but the frequency is random when the phone sleeps the WIFI.
We have also noticed that other apps (not ours) are show delays receiving notifications, one be a Door Bell app in our office.
Views and opinion's appreciated.
Regards
John.