Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: Schleckenmiester on September 18, 2019, 12:19:39 AM

Title: System Date Time
Post by: Schleckenmiester on September 18, 2019, 12:19:39 AM
Hey,

I'm making a game on android and I'm making a sorta Pet Hotel tycoon, but the Get System Date Time action is crucial and it doesn't seem to work on mobile. It works on PC just fine but when I open my app on my phone nothing's going through. Is there a fix for this?
Title: Re: System Date Time
Post by: Broken Stylus on September 18, 2019, 12:35:40 PM
It's possible this action is only meant to work on a computer.
You may need to access the native functions of the Android phones and tablets and this might require acquiring a plugin or adding a cs script somewhere in your project and call its method.
Also, if getting time is important for your game as to deliver daily rewards, you absolutely need to use an external server to ping otherwise the user can trick the game.
Now this sounds complex but there are many solutions out there that actually provide easy ways to buy an almost already set up game server space with very setup required. You'll have to subscribe to a monthly payment though.
Title: Re: System Date Time
Post by: jeanfabre on September 20, 2019, 06:12:38 AM
Hi,

 system date time works on mobile.

 can you make a simple scene to output the raw result of that action? what do you get?

Bye,

 Jean
Title: Re: System Date Time
Post by: Broken Stylus on September 21, 2019, 06:22:20 AM
Maybe the problem he has in one phone in particular?
Title: Re: System Date Time
Post by: spawnpoint on July 27, 2021, 01:34:45 AM
Well I tried my hands on get system date it does work but somehow when I am trying to save current date as string & trying to compare it with tomorrows date it won't work using string compare ?

Can anyone put any light on it ?
Title: Re: System Date Time
Post by: CuriousRodeo on August 10, 2021, 09:10:10 AM
I do this, but I store and compare as a float or int.
Title: Re: System Date Time
Post by: spawnpoint on August 31, 2021, 08:42:43 AM
Sorry for late reply,

But by default the "Get Time Span Between Date" store value in float format but comparing float format working on desktop but not on mobile, I have even tried on different mobiles but still no result.
Title: Re: System Date Time
Post by: djaydino on September 01, 2021, 03:38:16 PM
Hi.
Maybe the way you get the 'date' value?
i have used "Get Time Span Between Date" on some of my old mobile projects and it was working then.