problem with a simple notification

Game development with Board Game Arena Studio
Post Reply
User avatar
Ludovic
Posts: 5
Joined: 11 March 2014, 00:31

problem with a simple notification

Post by Ludovic »

Hello,

I have a concern. I can not send a simple notification. I call the "stRestocking" function in a game state.

 

Code: Select all

 2 => array (
         "name" => "restocking" 
         "description" => clienttranslate ('Currently restocking), 
         "type" => "game" 
         "action" => "stRestocking" 
         "updateGameProgression" => false, 
         "transitions" => array ("active player action '=> 3) 

Code: Select all

stRestocking function () 
     {
         self :: notifyAllPlayers 
         (
             "message", 
             clienttranslate ('Thanks for playing!') 
             array () 
         ); 
        
         $ this-> gamestate-> NEXTSTATE (active player Action '); 
     } 
I have no error message but nothing appears in the chat box.
Help, I turn around and I can not find the solution or the problem. Should we then do something?

Thank you in advance.
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: problem with a simple notification

Post by pikiou »

Hi,
Does it work from another state?
Can you receive other notifications?
Are you sure you enter this restocking state?
Just trying to help you narrow it down...
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: problem with a simple notification

Post by sourisdudesert »

Hi,

Sorry pikiou, in fact I already answered to Ludovic in a private email.

The notification are sent to player's interface only after player's interface are loaded. So notifications sent during initial setup cannot be visible from the interface perspective.

Cheers,
User avatar
Corymbe
Posts: 5
Joined: 07 April 2014, 16:29

Re: problem with a simple notification

Post by Corymbe »

Hello

i see i have a notification but when i click on the icon, nothing new appears !

is it a bug ?

i see red icon on the app too (android miui11)
Post Reply

Return to “Developers”