Currently, for the game to be playable, these conditions must be met:
The account must have (1) received at least one email and (2) have replied to that email within 30 days of last time logged into the game. (These conditions have to be true because the speed of the aircraft depends on the user's average response time, and the code specifies no default response time).
While any realistic user should have received at least one email and responded in the last 30 days, handle this case so a user whose account doesn't meet these criteria doesn't receive an error or just see a black screen:
[x] Handle "error loading json /stats.json?id=getSpaceGameData&email=xxx@gmail.com&incoming=0". (Will need to test with account that hasn't responded to any email within the last 30 days — i.e., may need to create a new gmail account for testing purposes).
[x] Once error resolved, instead of just showing a black screen, display a message on the screen (just text on the screen, not a popup alert) that reads: "Uh oh! It seems you haven't received and/or replied to any email within the last 30 days. Try reloading and playing with a more active account."
Currently, for the game to be playable, these conditions must be met: The account must have (1) received at least one email and (2) have replied to that email within 30 days of last time logged into the game. (These conditions have to be true because the speed of the aircraft depends on the user's average response time, and the code specifies no default response time).
While any realistic user should have received at least one email and responded in the last 30 days, handle this case so a user whose account doesn't meet these criteria doesn't receive an error or just see a black screen: