Is there a way to run a game only if the device (mobile, tablet or PC) has internet connection?
As my game is free, with advertising, my concern is that if there is no internet connection on the device, the advertising will not be loaded, and i won't be paid for the ads.
I would like the game to not run, until the device is connected to the internet.
I thought about using browser object to check if it is online, but i think the game will have to do this check once in a while to be sure the ads will be loaded. Cause if it only checks it once, for example, on the game start, the user could just disable the internet connection after the start for it not to show the advertising.
Any help or suggestions will be greatly appreciated...