Unable to understand Google Games Quests time zone selection - android

I am unable to understand how does google Quests API (Games.Quests) decide which quest to be open in different time zones and when.
https://developers.google.com/games/services/common/concepts/quests#quest_basics
In the above link it says
Schedule Specifies when players will be able to accept and participate in quests. When you enter the dates and time values, Google Play games services uses your local time zone but stores the values as UTC. Players will see these values appear in their local time zone in the Google Play Games app and in the default Quest list UI. You can also set up a quest as a repeating event on a weekly or monthly basis.
But unable to understand how schedule works.
For example : If as a Developer I have set time according to India (+5:30 UTC) and set that a quest will end on 12:00 am. Then when will the quest end in Mexico (-6:00 UTC)?
Note : The Quests list(with time & state) in Google Play Games app (as said above) remains the same even on changing device's time or time zone.

As stated by #Xaver, Goggle does all the heavy lifting for you. When you create a quest for the game and enter the dates and time values, Google Play games services uses your local time zone but stores the values as UTC as stated in the document. Google Play games will show this in the local timezone of the user.
For example you set the end of the quest in 12:am in India, then in Mexico it will end 12:30 PM.
The image is provided by
https://www.timeanddate.com/worldclock/converted.html?p1=54&p2=155 and it will help you understand more how the timezone works in Google Play Games Quest timezone.
Hope this helps.

Related

New Google Play Console Order TIME in UTC

The "new" Google Play Console displays the purchase time for app purchases in the UTC time zone. How do I get it to show the purchase time in the local time zone like in the "old" Google Play Console? I can't find the setting if there is one.

Google Play Game Service Ranking

I am working on Google play game service
I have integrated code for real time player and its working.
Now i want to know some more feature that
I did not found after searching on Google are below
1. When user won the game it should update wining counter by one.
2. What is the ranking of user according to country
3. How to get user detail of opponent.
It sounds like you want to check out Leaderboards https://developers.google.com/games/services/common/concepts/leaderboards
You can create (currently) up to 70 leaderboards (maybe one for the country/regions of your players).
At the end of your game, you can update the user's score. The server keeps track of daily, weekly, and all time leaders. There is also the concept of Public and Social leaderboards so that may be a way to see the opponent's standing.

Getting date from google play services

I'm developing a game for android. I use the google play services for the multiplayer functionality.
I want to integrate an ingame currency, which is reset to a fixed amount every day. Every game round the user plays will cost him 1 coin of this currency. Additionally i want to integrate in-app purchases to buy packages of coins, which are indepentant from that daily amount of coins.
My question concerns the date request when starting the app, which decides wether the user gets coins for that day, or if he already got them. If i just fetch the local date, the user could just change the phones date and get the coins even if he already got them for this day. So my question is, whats the best way to get the current date? I already use the google play services, so is there a way to fetch the date from there ? Otherwise, that needs the user to be connected to the internet. Any suggestion on this ?
Another question is, where to save the coins. Locally would be the easiest option. But is it safer to use the google play services cloud stuff for this too ? That would have the advantage to work cross device.
If you can't trust the user's device you may want to get time from an external server that you control.
For storing the coins remotely, please check out the Google Play Saved Games Service. You can store arbitrary data there and use it to sync coins and other information across a user's devices.

How to set Google Play Turn Based Multiplayer expire time

Currently Turn Based Multiplayer games expire in 2 weeks. Is there an option to set it to another value?
No, you can't set the expire time. The official documentation states:
A match expires when a user does not respond to an invitation or turn notification for two weeks. A match also expires in one day if there is an empty auto-match slot available but Google Play games services cannot find a user to auto-match.
There is a feature request to make it adjustable on Github, but sadly no recent activity.

Leaderboard with accumulated points using Google Play Game Services

I want to set a leaderboard just like the stackoverflow user reputation listing page does.
https://stackoverflow.com/users?tab=Reputation&filter=week
Everytime a user starts a new game his score will be added to his previous game score. Means the score will be accumulated. When i set a new highscore google play will update all three leaderboards(daily, weekly and alltime). The alltime part is OK. But the daily and weekly leaderboard values must be calculated seperately. Can i select which time period to be updated or at least disable the daily and weekly leaderboards?
Here is issue on google code:
https://code.google.com/p/play-games-platform/issues/detail?id=59&colspec=ID%20Type%20Status%20Priority%20Platform%20Summary%20Stars

Categories

Resources