B4X FEED Android 12 - WIFI_SLEEP_POLICY_NEVER

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Android 12 - WIFI_SLEEP_POLICY_NEVER است. این موضوع تا کنون 25 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Android 12 - WIFI_SLEEP_POLICY_NEVER
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
25
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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.
). 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.

 

عقب
بالا