Countown In the background

Hello Guys!

How can I create a countdown in the background on an adroid app.
For example, when there is an item and it has an one hour cooldown, the user should get a push-message that says that the item is ready for use (or something like that).

-Creey

Hi Creey.

There is two basic ways:

After the player use the item, you can place a Delay node with a value of 3600.

Or you can create a Custom Event, name it “ItemCooldown” and when the player use the item, you call the node “SetTimerByFunctionName”, on the func name place “ItemCooldown”, on time 3600.

Off course the function won’t know which item got their cooldown expired, so you may add a parameter on your custom event to tell the timer which item is.

Will this function also work if the app is closed?

Because the User should get a message if his item is ready or not.
Do you know what I mean?

Sir have you managed to do Notification using app in background process,
Do you have any available nodes or blueprints to show?