0 votes

Hi!

For my mobile game I need to check if user has a internet connection.
It will be used to decide is should show him a form to send a leaderboard entry to the server. Is there any easy way to do such check? Maybe some online/offline events like on the native Android?

asked Aug 1, 2017 in Engine by desik (56 points)

2 Answers

0 votes

you could just try to connect to the server with the leaderboard.
If no connection: do nothing or tell the player
If connection possible: update leaderboard

Check out HTTP client class:
http://docs.godotengine.org/en/stable/learning/features/networking/http_client_class.html

this code snippet checks for a successful connection

answered Aug 3, 2017 by ingo_nikot (289 points)
0 votes

You can use this script which is in my Github profile. I have explained "How can I implement?"

answered Feb 19, 2019 by Çağdaş Çağlak (19 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.