kvdroid / Kvdroid

Some Pyjnius tools for Kivy-Android developments.
MIT License
94 stars 24 forks source link

Check data connection always return False #41

Closed isaffathir closed 1 year ago

isaffathir commented 1 year ago

im using

from kvdroid.tools.network import network_status, wifi_status, mobile_status

print(network_status())  # for both wifi and mobile
print(wifi_status())    # only for wifi
print(mobile_status())    # only for mobile

but always return False any idea how to fix this?

Screenshot_7

yunus-ceyhan commented 1 year ago

Does your app have "ACCESS_NETWORK_STATE" permission?

yunus-ceyhan commented 1 year ago

"ACCESS_WIFI_STATE" permission can also be needed. Check your buildozer.spec to confirm whether it has those permissions. If it still returns False let me know.

isaffathir commented 1 year ago

Cool thanks for the help

can you add this requirement to readme.md? let people know need to add this requirement in buildozer . so people would not confuse like me haha