playMaker

Author Topic: How to achieve time-limited events?  (Read 1576 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
How to achieve time-limited events?
« on: March 12, 2014, 10:17:22 PM »
Hi,

I'm thinking elements like in Candy Crush, when you can buy an item that lasts for 15 minutes and then is removed.

Is this likely to be done by getting system time from the device, or getting data from a server?

How would I go about achieving something like this?  :-\

Thanks in advance,

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to achieve time-limited events?
« Reply #1 on: March 14, 2014, 07:19:03 AM »
Hi,

 device time will be ok. use the action "Get system date time" for this.

bye,

 Jean

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: How to achieve time-limited events?
« Reply #2 on: March 14, 2014, 08:15:16 AM »
What happens if the user changes the time settings on their device?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to achieve time-limited events?
« Reply #3 on: March 14, 2014, 08:46:06 AM »
Hi,

 well... you have a point, but who's doing that really... cause that affect EVERYTHING in your device, your mails, your calendar, your photos, other apps, this is lame and childish imo just to shunt a game... :)

if the user is ready to do so, he can just as well shunt the http call you are going to make and return a fake date isn't it? You would have to have a ssl connection established... to prevent this or shuffle/obfuscate/hash the time stamp which is never fun not practical without building custom actions for this.

 So yeah, if you have a https server with php do that, get time from a server, but youll face also the possibility that user is offline, and then you are facing more problems and potential issues.

Bye,

 Jean