question

Peter Anderson avatar image
Peter Anderson asked

Run Azure function that alters all player data,I am looking to accomplish the following:

I am looking to create a server function (azure function) that does the following:

- Executes at a random time in the future (example: will execute some time between 2-24 hours from current time)

- When it executes sends a notification to all players (Currently active players in the app should have a function called and those not active get an in app notification)

- When the function executes it will alter some data on every player

What is the best way to accomplish this with Playfab?

,
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Majority of the requirements can be fulfilled via PlayFab Scheduled Task, except "Executes at a random time".

Scheduled Task is using Cron expression to define the recurring time, which cannot be random.

The second and third parts can be done via Azure Function.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.