I've created with python and kivy an android app that works offline, app shows landscape photos, how can i open my app only when wifi is enabled? to let my app upload ads,have patience with me im new Thank You.
Asked
Active
Viewed 162 times
3 Answers
0
There's a dirty method though.. try requesting google.com or any other reliable website in the background with urllib or requests or socket, if its not getting any reply it must mean that system is not connected to internet

Adarsh Kumar
- 1
- 1
- 1
- 1
-
your reply seems to be irrelevant with the question asked – bhucho Aug 31 '20 at 05:30
-
If there's no internet or reply for the request the main loop of app can be made to exit making app online exclusive – Adarsh Kumar Sep 03 '20 at 20:27
0
First, try to search for internet connection and not only wifi, because the user can want to use his mobile data instead of wifi.
maybe this could help you: Checking network connection

Metalicat
- 3
- 3