Page 1 of 1

problem with a simple notification

Posted: 11 March 2014, 00:42
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.

Re: problem with a simple notification

Posted: 13 March 2014, 13:35
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...

Re: problem with a simple notification

Posted: 13 March 2014, 14:21
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,

Re: problem with a simple notification

Posted: 23 December 2019, 19:34
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)