Page 1 of 1

Send Admin Message from Server Extension

Posted: 20 Nov 2019, 06:06
by pogsdbest
Hi i know this Question is asked before, but would like to know if we can send an admin message from Extension.

our old build only Accepts Admin message to popup messages on their screen
would like to send an admin message on the server side to tell a specific player(User) to update to latest version of the app.

something like

send(SFSEventType.ADMIN_MESSAGE, sfsobjectMessage ,User);

Re: Send Admin Message from Server Extension

Posted: 20 Nov 2019, 08:07
by Lapo
Hi,
you can use the server API's sendAdminMessage() method.

Example:

Code: Select all

getApi().sendAdminMessage(sender, message, params, recipients)


To learn more see the docs here

Hope it helps

Re: Send Admin Message from Server Extension

Posted: 22 Nov 2019, 07:03
by pogsdbest
Lapo wrote:Hi,
you can use the server API's sendAdminMessage() method.

Example:

Code: Select all

getApi().sendAdminMessage(sender, message, params, recipients)


To learn more see the docs here

Hope it helps


thanks lapo